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:
@@ -59,7 +59,7 @@ function redirectTo($destination, $get_variables = array(), $isRelative = false)
|
|||||||
if($isRelative)
|
if($isRelative)
|
||||||
{
|
{
|
||||||
$linker->protocol = '';
|
$linker->protocol = '';
|
||||||
$linker->host = '';
|
$linker->hostname = '';
|
||||||
$path = './';
|
$path = './';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -74,7 +74,7 @@ function redirectTo($destination, $get_variables = array(), $isRelative = false)
|
|||||||
$linker->protocol = 'http';
|
$linker->protocol = 'http';
|
||||||
}
|
}
|
||||||
|
|
||||||
$linker->host = $_SERVER['HTTP_HOST'];
|
$linker->hostname = $_SERVER['HTTP_HOST'];
|
||||||
|
|
||||||
if(dirname($_SERVER['PHP_SELF']) == '/')
|
if(dirname($_SERVER['PHP_SELF']) == '/')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user