* RouteCollection.cs: GetVirtualPath doesn't append trailing slash
to application path blindly anymore. Fixes bug #553022
svn path=/trunk/mcs/; revision=145740
+2009-11-09 Marek Habersack <mhabersack@novell.com>
+
+ * RouteCollection.cs: GetVirtualPath doesn't append trailing slash
+ to application path blindly anymore. Fixes bug #553022
+
2009-09-09 Marek Habersack <mhabersack@novell.com>
* Route.cs: when Url is set to null, create a parser for empty
}
if (vp != null) {
- var pathWithApp = String.Concat (requestContext.HttpContext.Request.ApplicationPath, "/", vp.VirtualPath);
+ string appPath = requestContext.HttpContext.Request.ApplicationPath;
+ if (appPath != null && (appPath.Length == 0 || !appPath.EndsWith ("/", StringComparison.Ordinal)))
+ appPath += "/";
+
+ string pathWithApp = String.Concat (appPath, vp.VirtualPath);
vp.VirtualPath = requestContext.HttpContext.Response.ApplyAppPathModifier (pathWithApp);
return vp;
}