summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-21 20:46:02 +0000
committerErmal <eri@pfsense.org>2013-01-21 20:46:02 +0000
commit497d0b192f8e065ec3b4d1d94764b51c924a89b8 (patch)
treeddf1761050b835aca8d1a514a4e067568ceabe1c /usr/local/captiveportal
parent48006baf615c052b7939ee43cd262c253087fcf4 (diff)
downloadpfsense-497d0b192f8e065ec3b4d1d94764b51c924a89b8.zip
pfsense-497d0b192f8e065ec3b4d1d94764b51c924a89b8.tar.gz
There should be always a zone given from lighty to us so try to get that first
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index 28931a4..e4dd59c 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -44,7 +44,10 @@ header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Connection: close");
-$cpzone = $_REQUEST['zone'];
+if ($_GET['zone'])
+ $cpzone = $_GET['zone'];
+else if ($_POST['zone'])
+ $cpzone = $_POST['zone'];
$cpcfg = $config['captiveportal'][$cpzone];
$orig_host = $_ENV['HTTP_HOST'];
OpenPOWER on IntegriCloud