Author: mhabersack
Date: 2007-11-02 17:03:58 -0500 (Fri, 02 Nov 2007)
New Revision: 88749
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration/FileMatchingInfo.cs
Log:
Fix a regression of a recent fix = if virtual path is /, do not duplicate the
slash
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration/FileMatchingInfo.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Configuration/FileMatchingInfo.cs
2007-11-02 22:02:01 UTC (rev 88748)
+++ trunk/mcs/class/System.Web/System.Web.Configuration/FileMatchingInfo.cs
2007-11-02 22:03:58 UTC (rev 88749)
@@ -53,8 +53,13 @@
EndsWith = s.Substring (1);
if (s.IndexOf ('*') == -1)
- if (s [0] != '/')
- MatchExact = String.Format
("{0}/{1}", HttpRuntime.AppDomainAppVirtualPath, s);
+ if (s [0] != '/') {
+ string vpath =
HttpRuntime.AppDomainAppVirtualPath;
+ if (vpath == "/")
+ vpath = String.Empty;
+
+ MatchExact = String.Format
("{0}/{1}", vpath, s);
+ }
}
if (MatchExpr != "*") {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches