summaryrefslogtreecommitdiffstats
path: root/src/usr/local/captiveportal/index.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-05-12 07:51:39 -0300
committerRenato Botelho <renato@netgate.com>2016-05-12 07:51:39 -0300
commit7949eac7549151c4831c0b5657a58019078fd8b7 (patch)
tree25184812f823ee80b7ac40ad9704bd381226315a /src/usr/local/captiveportal/index.php
parent0c388fefae197d481c8c1a85fe1dd802d5ead400 (diff)
downloadpfsense-7949eac7549151c4831c0b5657a58019078fd8b7.zip
pfsense-7949eac7549151c4831c0b5657a58019078fd8b7.tar.gz
Add a safebelt to makesure $cpzone is always in lowercase. Ticket #6278
Diffstat (limited to 'src/usr/local/captiveportal/index.php')
-rw-r--r--src/usr/local/captiveportal/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/captiveportal/index.php b/src/usr/local/captiveportal/index.php
index 93c4e30..b1f693a 100644
--- a/src/usr/local/captiveportal/index.php
+++ b/src/usr/local/captiveportal/index.php
@@ -42,7 +42,7 @@ header("Connection: close");
global $cpzone, $cpzoneid;
-$cpzone = $_REQUEST['zone'];
+$cpzone = strtolower($_REQUEST['zone']);
$cpcfg = $config['captiveportal'][$cpzone];
if (empty($cpcfg)) {
log_error("Submission to captiveportal with unknown parameter zone: " . htmlspecialchars($cpzone));
OpenPOWER on IntegriCloud