From 3b1be998144f935bc5065b0eba59e532f169e7dd Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Thu, 7 Mar 2013 09:35:20 +0100 Subject: [PATCH] use correct linker-property to set the hostname in redirectTo() function, fixes #1151 Signed-off-by: Michael Kaufmann (d00p) --- lib/functions/output/function.redirectTo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions/output/function.redirectTo.php b/lib/functions/output/function.redirectTo.php index a2c6f20e..25738f37 100644 --- a/lib/functions/output/function.redirectTo.php +++ b/lib/functions/output/function.redirectTo.php @@ -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']) == '/') {