mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Prevent doubling webserver url when building a link
This commit is contained in:
parent
e2b385ed9c
commit
f736c89bbf
@ -1078,7 +1078,7 @@ 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'] != '/')
|
||||
if (($url[0] != '/' || $GLOBALS['egw_info']['server']['webserver_url'] != '/') && strpos($url, $GLOBALS['egw_info']['server']['webserver_url']) === false)
|
||||
{
|
||||
if($url[0] != '/' && substr($GLOBALS['egw_info']['server']['webserver_url'],-1) != '/')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user