Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
But GetDirectory() will create folder if not exists by design. The
problem exists in ~/App_Data/Files/<here> despite this fix.
  • Loading branch information
tree-chtsec committed Oct 24, 2022
1 parent 61daddf commit 9a8a7e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private static string BlogAbsolutePath(string VirtualPath)
private static string RelativeFilePath(string VirtualPath)
{
VirtualPath = VirtualPath.Replace("//","/").Trim();
if (VirtualPath.ToLower().Contains(FileContainerRoot.ToLower()))
if (VirtualPath.ToLower().Contains(FileContainerRoot.ToLower()+"/") || VirtualPath.ToLower() == FileContainerRoot.ToLower())
return VirtualPath;

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

0 comments on commit 9a8a7e3

Please sign in to comment.