From 515b8c063058b70c5f1984f8fedf61ef58ffdb12 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 9 Nov 2005 13:27:49 +0000 Subject: [PATCH] hopefully now all possebilities to construct an eGW URL are covered --- phpgwapi/inc/class.common.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index da15ce9bff..715bbb3b4d 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -2098,10 +2098,7 @@ $parts = explode($GLOBALS['egw_info']['server']['webserver_url'],$referer); $referer = array_pop($parts); - if (count($parts) > 1) // eg. URL contains http://egroupware.domain.com/egroupware/... and webserver_url='/egroupware' - { - $referer = array_pop($parts) . $GLOBALS['egw_info']['server']['webserver_url'] . $referer; - } + if (empty($referer)) $referer = $default; return $referer;