use correct linker-property to set the hostname in redirectTo() function, fixes #1151

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-03-07 09:35:20 +01:00
parent 12e57c5f10
commit 3b1be99814

View File

@@ -59,7 +59,7 @@ function redirectTo($destination, $get_variables = array(), $isRelative = false)
if($isRelative)
{
$linker->protocol = '';
$linker->host = '';
$linker->hostname = '';
$path = './';
}
else
@@ -74,7 +74,7 @@ function redirectTo($destination, $get_variables = array(), $isRelative = false)
$linker->protocol = 'http';
}
$linker->host = $_SERVER['HTTP_HOST'];
$linker->hostname = $_SERVER['HTTP_HOST'];
if(dirname($_SERVER['PHP_SELF']) == '/')
{