Skip to content

Commit 84026a5

Browse files
Merge pull request #104 from sajones926/fixpath-update
Update to fix file path to remove ~ from media file path.
2 parents 8aa6adb + dfb3959 commit 84026a5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/UmbracoFileSystemProviders.Azure/AzureFileSystem.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,12 @@ private string FixPath(string path)
734734
path = path.Substring(appVirtualPath.Length);
735735
}
736736

737+
// Strip ~ before any others
738+
if (path.StartsWith("~", StringComparison.InvariantCultureIgnoreCase))
739+
{
740+
path = path.Substring(1);
741+
}
742+
737743
if (path.StartsWith(Delimiter))
738744
{
739745
path = path.Substring(1);

0 commit comments

Comments
 (0)