mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fixed egroupware.org bug #3002: PHP Warning: mb_strpos() in class.egw_session.inc.php on line 1081
This commit is contained in:
parent
a89430ae8e
commit
a7aef6a4da
@ -1078,15 +1078,16 @@ class egw_session
|
||||
}
|
||||
|
||||
// append the url to the webserver url, but avoid more then one slash between the parts of the url
|
||||
if (($url[0] != '/' || $GLOBALS['egw_info']['server']['webserver_url'] != '/') && strpos($url, $GLOBALS['egw_info']['server']['webserver_url']) === false)
|
||||
$webserver_url = $GLOBALS['egw_info']['server']['webserver_url'];
|
||||
if (($url[0] != '/' || $webserver_url != '/') && (!$webserver_url || strpos($url, $webserver_url) === false))
|
||||
{
|
||||
if($url[0] != '/' && substr($GLOBALS['egw_info']['server']['webserver_url'],-1) != '/')
|
||||
if($url[0] != '/' && substr($webserver_url,-1) != '/')
|
||||
{
|
||||
$url = $GLOBALS['egw_info']['server']['webserver_url'] .'/'. $url;
|
||||
$url = $webserver_url .'/'. $url;
|
||||
}
|
||||
else
|
||||
{
|
||||
$url = $GLOBALS['egw_info']['server']['webserver_url'] . $url;
|
||||
$url = $webserver_url . $url;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user