forked from extern/egroupware
do NOT use hostname configured in setup, if it is the default localhost
stick with HTTP Host header in that case
This commit is contained in:
parent
20c02ec2c1
commit
8c23fca35e
@ -685,7 +685,7 @@ class Sharing
|
||||
if ($link[0] == '/')
|
||||
{
|
||||
$link = ($_SERVER['HTTPS'] ? 'https://' : 'http://').
|
||||
($GLOBALS['egw_info']['server']['hostname'] ?
|
||||
($GLOBALS['egw_info']['server']['hostname'] && $GLOBALS['egw_info']['server']['hostname'] !== 'localhost' ?
|
||||
$GLOBALS['egw_info']['server']['hostname'] : $_SERVER['HTTP_HOST']).
|
||||
$link;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user