* WebConfigurationHost.cs: when an attempt to map a fake virtual
path is made, MapPath returns the aplication physical root
directory. Fixes bug #463950
svn path=/trunk/mcs/; revision=124479
+2009-01-26 Marek Habersack <mhabersack@novell.com>
+
+ * WebConfigurationHost.cs: when an attempt to map a fake virtual
+ path is made, MapPath returns the aplication physical root
+ directory. Fixes bug #463950
+
2008-01-09 Dean Brettle <dean@brettle.com>
* nBrowser/Node.cs: Fixed compatibility bug where <identification> sections were required
public string MapPath (string virtualPath)
{
+ if (!String.IsNullOrEmpty (virtualPath)) {
+ if (virtualPath.StartsWith (System.Web.Compilation.BuildManager.FAKE_VIRTUAL_PATH_PREFIX, StringComparison.Ordinal))
+ return HttpRuntime.AppDomainAppPath;
+ }
+
if (map != null)
return MapPathFromMapper (virtualPath);
else if (HttpContext.Current != null && HttpContext.Current.Request != null)