From 55a84f8feebf9c0bc45b7d783da02883d3eae545 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 5 Jul 2016 09:15:28 +0200 Subject: [PATCH] * Filemanager/CKEditor: correctly encoding selected files, causing eg. images to not show --- filemanager/inc/class.filemanager_select.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filemanager/inc/class.filemanager_select.inc.php b/filemanager/inc/class.filemanager_select.inc.php index ded29b2c08..463c1d6b83 100644 --- a/filemanager/inc/class.filemanager_select.inc.php +++ b/filemanager/inc/class.filemanager_select.inc.php @@ -196,7 +196,7 @@ class filemanager_select if ($download_url[0] == '/') $download_url = Egw::link($download_url); $js = "window.opener.CKEDITOR.tools.callFunction(". $content['ckeditorfuncnum'].",'". - htmlspecialchars($download_url)."',". + str_replace("'", "\\'", $download_url)."',". "'');\negw(window).close();"; } if(Api\Json\Response::isJSONResponse() && !($content['method'] == 'ckeditor_return'))