mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
hopefully now all possebilities to construct an eGW URL are covered
This commit is contained in:
parent
17fe4ff188
commit
515b8c0630
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user