mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-08 14:30:05 +01:00
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:
parent
f615721cf1
commit
f003d64ff1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user