From dab86e0dfd2fb567046c90f9b778a8e4c6eb437b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 28 Jun 2010 10:51:23 +0000 Subject: [PATCH] return default instead of referer containing "cd=yes", which causes a load of the framework inside the framework --- 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 1439d8b5bb..ffe2f32d18 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -1555,6 +1555,7 @@ class common * @param string $default='' default to use if referer is not set by webserver or not determinable * @param string $referer='' referer string to use, default ('') use $_SERVER['HTTP_REFERER'] * @return string + * @todo get "real" referer for jDots template */ static function get_referer($default='',$referer='') { @@ -1572,7 +1573,7 @@ class common } $referer = str_replace('/etemplate/process_exec.php','/index.php',$referer); - if (empty($referer)) $referer = $default; + if (empty($referer) || strpos($referer,'cd=yes') !== false) $referer = $default; return $referer; }