From a294c9e4507145aa1cd7040a7a3dd396f3b6ed06 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Thu, 7 Nov 2013 18:02:49 -0800 Subject: [PATCH] #20072: Fixing media import when folder contains international chars Work Item: 20072 --- .../Orchard.MediaLibrary/Views/ClientStorage/Index.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.MediaLibrary/Views/ClientStorage/Index.cshtml b/src/Orchard.Web/Modules/Orchard.MediaLibrary/Views/ClientStorage/Index.cshtml index 88f9f552a..5420fe349 100644 --- a/src/Orchard.Web/Modules/Orchard.MediaLibrary/Views/ClientStorage/Index.cshtml +++ b/src/Orchard.Web/Modules/Orchard.MediaLibrary/Views/ClientStorage/Index.cshtml @@ -87,7 +87,7 @@ url: '@Url.Action("Upload", "ClientStorage")', autoUpload: true, formData: { - folderPath: '@HttpUtility.JavaScriptStringEncode(Model.FolderPath)', + folderPath: '@Html.Raw(HttpUtility.JavaScriptStringEncode(Model.FolderPath))', type: '@HttpUtility.JavaScriptStringEncode(Model.Type)', __RequestVerificationToken: '@Html.AntiForgeryTokenValueOrchard()' },