merged Nathans commit including my fix, as it fixes not working filemanager favorites to dirs with single quotes: only quote urlencoded single quotes, if we use egw_link_handler, if not quoting destroys the links!!!

This commit is contained in:
Ralf Becker 2010-10-12 09:18:31 +00:00
parent f615721cf1
commit f003d64ff1

View File

@ -138,9 +138,13 @@ class jdots_framework extends egw_framework
{
if (is_null($link_app)) $link_app = self::$link_app;
$link = parent::link($url,$extravars);
// $link_app === true --> detect application, otherwise use given application
if ($link_app && (is_string($link_app) || ($link_app = self::app_from_url($link))))
{
// Link gets handled in JS, so quotes need slashes as well as url-encoded
$link = str_replace('%27', '\%27', $link);
$link = "javascript:egw_link_handler('$link','$link_app');";
}
return $link;