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:
Sebastien Ros
2010-11-23 13:28:40 -08:00
parent 2ccde50d1e
commit 2f35839887

View File

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