Skip to content

Commit 9a8a7e3

Browse files
committed
But GetDirectory() will create folder if not exists by design. The problem exists in ~/App_Data/Files/<here> despite this fix.
1 parent 61daddf commit 9a8a7e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BlogEngine/BlogEngine.Core/Providers/FileSystemProviders/XmlFileSystemProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private static string BlogAbsolutePath(string VirtualPath)
2828
private static string RelativeFilePath(string VirtualPath)
2929
{
3030
VirtualPath = VirtualPath.Replace("//","/").Trim();
31-
if (VirtualPath.ToLower().Contains(FileContainerRoot.ToLower()))
31+
if (VirtualPath.ToLower().Contains(FileContainerRoot.ToLower()+"/") || VirtualPath.ToLower() == FileContainerRoot.ToLower())
3232
return VirtualPath;
3333

3434
// ex: Oct 18 2012, added this to handle the case on the File Manager where if

0 commit comments

Comments
 (0)