forked from extern/egroupware
patch to fix problem with ->not able to see mail<- egw_instant_load.html not found. provided by Vladimir Kolobkov; Thanks a lot
This commit is contained in:
parent
f297d65790
commit
45468c801a
@ -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