#20681, #20598: Fixing Media Profiles path encoding

Work Items: 20681, 20598
This commit is contained in:
Sebastien Ros
2014-06-13 11:37:32 -07:00
parent 63786525c7
commit c7aacf6f9f

View File

@@ -111,7 +111,7 @@ namespace Orchard.MediaProcessing.Services {
using (var image = GetImage(path)) {
var filterContext = new FilterContext { Media = image, FilePath = _storageProvider.Combine("_Profiles", FormatProfilePath(profileName, path)) };
var filterContext = new FilterContext { Media = image, FilePath = _storageProvider.Combine("_Profiles", FormatProfilePath(profileName, System.Web.HttpUtility.UrlDecode(path))) };
if (image == null) {
return filterContext.FilePath;