summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/functions.inc
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2016-01-25 07:21:40 -0600
committerLuiz Otavio O Souza <luiz@netgate.com>2016-01-25 07:23:09 -0600
commit5e498cfe7e2ac0b8c585bdfaec1a98f2f548e16c (patch)
treef4bea5ae52f78252f8951569ec804730e1d7b072 /src/etc/inc/functions.inc
parent0919644d360888918ae728dd19728d1da332856f (diff)
downloadpfsense-5e498cfe7e2ac0b8c585bdfaec1a98f2f548e16c.zip
pfsense-5e498cfe7e2ac0b8c585bdfaec1a98f2f548e16c.tar.gz
Fixes the other uses of SERVER_NAME in tree.
The SERVER_NAME variable is not available anymore, use HTTP_HOST instead.
Diffstat (limited to 'src/etc/inc/functions.inc')
-rw-r--r--src/etc/inc/functions.inc2
1 files changed, 1 insertions, 1 deletions
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");
OpenPOWER on IntegriCloud