* WebConfigurationManager.cs: avoid possible infinite loop when the
path starts with ~ and 1 file check.
svn path=/trunk/mcs/; revision=138495
+2009-07-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * WebConfigurationManager.cs: avoid possible infinite loop when the
+ path starts with ~ and 1 file check.
+
2009-07-15 Marek Habersack <mhabersack@novell.com>
* WebConfigurationManager.cs: another approach to suppressing
if (req == null)
return path;
- curPath = path;
+ curPath = dir;
string rootPath = HttpRuntime.AppDomainAppVirtualPath;
string physPath;
break;
curPath = GetParentDir (rootPath, curPath);
- if (curPath == null) {
+ if (curPath == null || curPath == "~") {
curPath = rootPath;
break;
}