Corrects a couple minor issue with Directory support when mapped to a
Virtual Directory and network shares.
This commit is contained in:
@@ -85,7 +85,7 @@ namespace Umbraco.Core.IO
|
||||
public static string MapPath(string path, bool useHttpContext)
|
||||
{
|
||||
// Check if the path is already mapped
|
||||
if (path.Length >= 2 && path[1] == Path.VolumeSeparatorChar)
|
||||
if ((path.Length >= 2 && path[1] == Path.VolumeSeparatorChar) || path.StartsWith("\\"))
|
||||
return path;
|
||||
|
||||
// Check that we even have an HttpContext! otherwise things will fail anyways
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace umbraco.cms.businesslogic.web
|
||||
if (_accessXmlSource == null)
|
||||
{
|
||||
//if we pop it here it'll make for better stack traces ;)
|
||||
_accessXmlSource = IOHelper.MapPath(SystemFiles.AccessXml, false);
|
||||
_accessXmlSource = IOHelper.MapPath(SystemFiles.AccessXml, true);
|
||||
}
|
||||
|
||||
_accessXmlContent = new XmlDocument();
|
||||
|
||||
Reference in New Issue
Block a user