mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
patch to fix problem with ->not able to see mail<- egw_instant_load.html not found. provided by Vladimir Kolobkov;
This commit is contained in:
parent
6683071fdd
commit
b5d5a38b1d
@ -1079,7 +1079,9 @@ class egw_session
|
||||
|
||||
// append the url to the webserver url, but avoid more then one slash between the parts of the url
|
||||
$webserver_url = $GLOBALS['egw_info']['server']['webserver_url'];
|
||||
if (($url[0] != '/' || $webserver_url != '/') && (!$webserver_url || strpos($url, $webserver_url) === false))
|
||||
// patch inspired by vladimir kolobkov -> we should not try to match the webserver url against the url without '/' as delimiter,
|
||||
// as $webserver_url may be part of $url (as /egw is part of phpgwapi/js/egw_instant_load.html)
|
||||
if (($url[0] != '/' || $webserver_url != '/') && (!$webserver_url || strpos($url, $webserver_url.'/') === false))
|
||||
{
|
||||
if($url[0] != '/' && substr($webserver_url,-1) != '/')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user