summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-20 22:32:21 +0000
committerErmal <eri@pfsense.org>2013-12-20 22:32:21 +0000
commit362ec35df2999b4ab75c72473c0b3c938070c2bc (patch)
treeaf39baa4761f8804c08e8fe33dd9614c1b7776d3 /usr/local/captiveportal
parentaa205c3b69bf76b1565fd42dba83c7637212f793 (diff)
downloadpfsense-362ec35df2999b4ab75c72473c0b3c938070c2bc.zip
pfsense-362ec35df2999b4ab75c72473c0b3c938070c2bc.tar.gz
Do not register the _ENV superglobal since its not required and probably not very useful in a [F]CGI world and its limit is restricted nowdays in pfSense.
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index e8bcee3..63f62b8 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -57,7 +57,7 @@ if (empty($cpcfg)) {
$cpzoneid = $cpcfg['zoneid'];
-$orig_host = $_ENV['HTTP_HOST'];
+$orig_host = $_SERVER['HTTP_HOST'];
/* NOTE: IE 8/9 is buggy and that is why this is needed */
$orig_request = trim($_REQUEST['redirurl'], " /");
$clientip = $_SERVER['REMOTE_ADDR'];
OpenPOWER on IntegriCloud