mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 11:23:54 +01:00
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
045436609d
commit
21e123ef84
@ -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