hopefully now all possebilities to construct an eGW URL are covered

This commit is contained in:
Ralf Becker 2005-11-09 13:27:49 +00:00
parent 17fe4ff188
commit 515b8c0630

View File

@ -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;