From 734a9f69474d9f16ab054b9950abead40b4e53be Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 27 Nov 2009 12:35:57 +0000 Subject: [PATCH] HTTP_REFERER seems NOT to get urldecoded, causing url already containing a comma in calendar got double encoded, which stalls the calendar (no access to calendar of "1%2C2"!) --- phpgwapi/inc/class.common.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 5dd6f394a4..4fc32a31ac 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -1619,7 +1619,8 @@ class common */ static function get_referer($default='',$referer='') { - if (!$referer) $referer = $_SERVER['HTTP_REFERER']; + // HTTP_REFERER seems NOT to get urldecoded + if (!$referer) $referer = urldecode($_SERVER['HTTP_REFERER']); $webserver_url = $GLOBALS['egw_info']['server']['webserver_url']; if (empty($webserver_url) || $webserver_url{0} == '/') // url is just a path