Corrects a couple minor issue with Directory support when mapped to a

Virtual Directory and network shares.
This commit is contained in:
Casey Neehouse
2012-10-26 04:19:14 +04:00
parent 6bf3a7a74a
commit bbd62f20a9
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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();