mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +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);
|
$parts = explode($GLOBALS['egw_info']['server']['webserver_url'],$referer);
|
||||||
|
|
||||||
$referer = array_pop($parts);
|
$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;
|
if (empty($referer)) $referer = $default;
|
||||||
|
|
||||||
return $referer;
|
return $referer;
|
||||||
|
Loading…
Reference in New Issue
Block a user