* Filemanager/CKEditor: correctly encoding selected files, causing eg. images to not show

This commit is contained in:
Ralf Becker 2016-07-05 09:15:28 +02:00
parent 439d1e9dab
commit 25a7046983

View File

@ -196,7 +196,7 @@ class filemanager_select
if ($download_url[0] == '/') $download_url = Egw::link($download_url); if ($download_url[0] == '/') $download_url = Egw::link($download_url);
$js = "window.opener.CKEDITOR.tools.callFunction(". $js = "window.opener.CKEDITOR.tools.callFunction(".
$content['ckeditorfuncnum'].",'". $content['ckeditorfuncnum'].",'".
htmlspecialchars($download_url)."',". str_replace("'", "\\'", $download_url)."',".
"'');\negw(window).close();"; "'');\negw(window).close();";
} }
if(Api\Json\Response::isJSONResponse() && !($content['method'] == 'ckeditor_return')) if(Api\Json\Response::isJSONResponse() && !($content['method'] == 'ckeditor_return'))