From f003d64ff14437437484b220f8e1a23b0ded9a26 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 12 Oct 2010 09:18:31 +0000 Subject: [PATCH] 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!!! --- jdots/inc/class.jdots_framework.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jdots/inc/class.jdots_framework.inc.php b/jdots/inc/class.jdots_framework.inc.php index 4b783919dc..f401bab398 100755 --- a/jdots/inc/class.jdots_framework.inc.php +++ b/jdots/inc/class.jdots_framework.inc.php @@ -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;