diff options
author | Renato Botelho <renato@netgate.com> | 2016-05-12 07:51:39 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-05-12 07:51:39 -0300 |
commit | 7949eac7549151c4831c0b5657a58019078fd8b7 (patch) | |
tree | 25184812f823ee80b7ac40ad9704bd381226315a /src/usr/local/www/services_captiveportal.php | |
parent | 0c388fefae197d481c8c1a85fe1dd802d5ead400 (diff) | |
download | pfsense-7949eac7549151c4831c0b5657a58019078fd8b7.zip pfsense-7949eac7549151c4831c0b5657a58019078fd8b7.tar.gz |
Add a safebelt to makesure $cpzone is always in lowercase. Ticket #6278
Diffstat (limited to 'src/usr/local/www/services_captiveportal.php')
-rw-r--r-- | src/usr/local/www/services_captiveportal.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/local/www/services_captiveportal.php b/src/usr/local/www/services_captiveportal.php index b42306e..3ca3fa8 100644 --- a/src/usr/local/www/services_captiveportal.php +++ b/src/usr/local/www/services_captiveportal.php @@ -82,6 +82,7 @@ $cpzone = $_GET['zone']; if (isset($_POST['zone'])) { $cpzone = $_POST['zone']; } +$cpzone = strtolower($cpzone); if (empty($cpzone) || empty($config['captiveportal'][$cpzone])) { header("Location: services_captiveportal_zones.php"); |