diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-03-12 18:53:14 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-03-12 18:53:31 -0500 |
commit | 80271fb3087cba1f6ca228cc1ec81d391ec5c76b (patch) | |
tree | bdf1769f183dcb980d7ba11be2890a1f11527a3c /usr | |
parent | 22ec33b9d6e8ae3787d4bb809c47bf42e2916a9a (diff) | |
download | pfsense-80271fb3087cba1f6ca228cc1ec81d391ec5c76b.zip pfsense-80271fb3087cba1f6ca228cc1ec81d391ec5c76b.tar.gz |
add more wireless validation. Ticket #4516
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/interfaces.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 7020726..8b30459 100644 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -827,11 +827,14 @@ if ($_POST['apply']) { $input_errors[] = gettext("Channel selected is not valid for 802.11a or 802.11na."); } } - if (isset($_POST['standard']) && ($_POST['standard'] = "11b" || $_POST['standard'] = "11g")) { + if (isset($_POST['standard']) && ($_POST['standard'] == "11b" || $_POST['standard'] == "11g")) { if ($_POST['channel'] > 14) { $input_errors[] = gettext("Channel selected is not valid for 802.11b or 802.11g."); } } + if (!empty($_POST['protmode']) && !in_array($_POST['protmode'], array("off", "cts", "rtscts"))) { + $input_errors[] = gettext("Invalid option chosen for OFDM Protection Mode"); + } /* loop through keys and enforce size */ for ($i = 1; $i <= 4; $i++) { if ($_POST['key' . $i]) { |