From 5e498cfe7e2ac0b8c585bdfaec1a98f2f548e16c Mon Sep 17 00:00:00 2001 From: Luiz Otavio O Souza Date: Mon, 25 Jan 2016 07:21:40 -0600 Subject: Fixes the other uses of SERVER_NAME in tree. The SERVER_NAME variable is not available anymore, use HTTP_HOST instead. --- src/etc/inc/functions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/etc/inc/functions.inc') diff --git a/src/etc/inc/functions.inc b/src/etc/inc/functions.inc index c5636fa..026d7fb 100644 --- a/src/etc/inc/functions.inc +++ b/src/etc/inc/functions.inc @@ -86,7 +86,7 @@ if (!function_exists("pfSenseHeader")) { if ($_SERVER['SERVER_PORT'] == "443" && $protocol == "https") { $port = ""; } - $complete_url = "{$protocol}://{$_SERVER['SERVER_NAME']}{$port}/{$text}"; + $complete_url = "{$protocol}://{$_SERVER['HTTP_HOST']}{$port}/{$text}"; echo "\ndocument.location.href = '{$complete_url}';\n"; } else { header("Location: $text"); -- cgit v1.1