summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_captiveportal_mac_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-09-20 07:16:31 -0300
committerRenato Botelho <renato@netgate.com>2016-09-20 07:16:31 -0300
commitab4b6ea448feaaf9ec2c792f93aea6a5fdd694d9 (patch)
tree1f95f3c905e1dda516643a50b030e12b6e545240 /src/usr/local/www/services_captiveportal_mac_edit.php
parent377898f1aaa9c2ad3ed2d046e13b3370b3abe36f (diff)
downloadpfsense-ab4b6ea448feaaf9ec2c792f93aea6a5fdd694d9.zip
pfsense-ab4b6ea448feaaf9ec2c792f93aea6a5fdd694d9.tar.gz
Sanitize 'zone' parameter on CP pages
Diffstat (limited to 'src/usr/local/www/services_captiveportal_mac_edit.php')
-rw-r--r--src/usr/local/www/services_captiveportal_mac_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/services_captiveportal_mac_edit.php b/src/usr/local/www/services_captiveportal_mac_edit.php
index 885f437..73ed466 100644
--- a/src/usr/local/www/services_captiveportal_mac_edit.php
+++ b/src/usr/local/www/services_captiveportal_mac_edit.php
@@ -86,7 +86,7 @@ $cpzone = $_GET['zone'];
if (isset($_POST['zone'])) {
$cpzone = $_POST['zone'];
}
-$cpzone = strtolower($cpzone);
+$cpzone = strtolower(htmlspecialchars($cpzone));
if (empty($cpzone) || empty($config['captiveportal'][$cpzone])) {
header("Location: services_captiveportal_zones.php");
OpenPOWER on IntegriCloud