mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Fixing trailing slash issue on Azure media folders
--HG-- branch : dev extra : transplant_source : %D2%A0%A7%8DG%09%B6f%F5%AE%A2w%7D%AD%5E%02%DEa%9D%AB
This commit is contained in:
@@ -256,7 +256,7 @@ namespace Orchard.Azure {
|
||||
}
|
||||
|
||||
public string GetPath() {
|
||||
return _blob.Uri.ToString().Substring(_rootPath.Length+1);
|
||||
return _blob.Uri.ToString().Substring(_rootPath.Length).Trim('/');
|
||||
}
|
||||
|
||||
public string GetName() {
|
||||
@@ -300,7 +300,7 @@ namespace Orchard.Azure {
|
||||
}
|
||||
|
||||
public string GetPath() {
|
||||
return _blob.Uri.ToString().Substring(_rootPath.Length + 1).TrimEnd('/');
|
||||
return _blob.Uri.ToString().Substring(_rootPath.Length).Trim('/');
|
||||
}
|
||||
|
||||
public long GetSize() {
|
||||
|
Reference in New Issue
Block a user