summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php
index e4dd59c..28931a4 100755
--- a/usr/local/captiveportal/index.php
+++ b/usr/local/captiveportal/index.php
@@ -44,10 +44,7 @@ header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Connection: close");
-if ($_GET['zone'])
- $cpzone = $_GET['zone'];
-else if ($_POST['zone'])
- $cpzone = $_POST['zone'];
+$cpzone = $_REQUEST['zone'];
$cpcfg = $config['captiveportal'][$cpzone];
$orig_host = $_ENV['HTTP_HOST'];
OpenPOWER on IntegriCloud