* 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 e341235779
commit 55a84f8fee

View File

@ -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'))