]> git.andy128k.dev Git - ipf.git/commitdiff
escape path in admin file browser
authorAndrey Kutejko <andy128k@gmail.com>
Fri, 1 Aug 2014 20:14:03 +0000 (23:14 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Fri, 1 Aug 2014 20:14:03 +0000 (23:14 +0300)
ipf/admin/templates/admin/filebrowser.html

index 70bb9eb72fb4efbed0086d5edbbb59a57da9929e..2a68dfb53de1d5eb8b762eb317e5be7e12192f99 100644 (file)
@@ -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")
         {