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