From: Andrey Kutejko Date: Fri, 1 Aug 2014 20:14:03 +0000 (+0300) Subject: escape path in admin file browser X-Git-Tag: 0.6~203 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=09cd7c32dba4dbe9d22ebc07b42bb46753bcaf56;p=ipf.git escape path in admin file browser --- diff --git a/ipf/admin/templates/admin/filebrowser.html b/ipf/admin/templates/admin/filebrowser.html index 70bb9eb..2a68dfb 100644 --- a/ipf/admin/templates/admin/filebrowser.html +++ b/ipf/admin/templates/admin/filebrowser.html @@ -70,7 +70,7 @@ var FileBrowserDialogue = { var URL = upload_url + curr_dir +'/'+ $('#id_old_name').val(); var win = tinyMCEPopup.getWindowArg("window"); // insert information now - win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = URL; + win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = encodeURI(URL); // are we an image browser if (typeof(win.ImageDialog) != "undefined") {