Răsfoiți Sursa

2004-02-09 Gonzalo Paniagua Javier <[email protected]>

	* WebConfigurationSettings.cs: fix Web.config search for caseo
	insensitive filesystems.

svn path=/trunk/mcs/; revision=22901
Gonzalo Paniagua Javier 22 ani în urmă
părinte
comite
af01dc4e8e

+ 5 - 0
mcs/class/System.Web/System.Web.Configuration/ChangeLog

@@ -1,3 +1,8 @@
+2004-02-09  Gonzalo Paniagua Javier <[email protected]>
+
+	* WebConfigurationSettings.cs: fix Web.config search for caseo
+	insensitive filesystems.
+
 2004-02-04  Lluis Sanchez Gual <[email protected]>
 
 	* WebConfigurationSettings.cs: Load remoting configuration when reading

+ 1 - 1
mcs/class/System.Web/System.Web.Configuration/WebConfigurationSettings.cs

@@ -151,7 +151,7 @@ namespace System.Web.Configuration
 			string upper = Path.Combine (realpath, "Web.config");
 			bool isUpper = File.Exists (upper);
 			bool isLower = File.Exists (lower);
-			if (Path.DirectorySeparatorChar == '/' && isUpper && isLower)
+			if (isUpper && isLower && Directory.GetFiles (realpath, "Web.config").Length < 2)
 				throw new ConfigurationException ("Both web.config and Web.config exist for " + dir);
 
 			if (dir == "/")