diff options
author | Joecowboy <i7wasn7m3@gmail.com> | 2012-02-18 12:25:14 -0600 |
---|---|---|
committer | Joecowboy <i7wasn7m3@gmail.com> | 2012-02-18 12:25:14 -0600 |
commit | ebc2ee612f265cc996b465b2c2101378d5bdf88a (patch) | |
tree | 7018ee873a7cb5272c304603828c6c5e1fcdb021 /usr | |
parent | e32805d9ef2e06f61c4f7146e69800f2014eb8e4 (diff) | |
download | pfsense-ebc2ee612f265cc996b465b2c2101378d5bdf88a.zip pfsense-ebc2ee612f265cc996b465b2c2101378d5bdf88a.tar.gz |
A friend of mine was having the same issue that was stated in another pull request with the explode function and white space. So when you commit changes on WLAN would throw and error stating MODE must have SSID set. Dropped the explode function all together, initialized the array first and then pushed the SSID onto the array if Mode is set to Access in your wireless configuration. No more Mode set issue. :D
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 4a0d49e..6897bd1 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -561,9 +561,8 @@ if ($_POST['apply']) { $input_errors[] = gettext("The MSS must be greater than 576 bytes."); /* Wireless interface? */ if (isset($wancfg['wireless'])) { - $reqdfields = "mode"; - if($_POST['mode'] == 'hostap') { $reqdfields += " ssid"; } - $reqdfields = explode(" ", $reqdfields); + $reqdfields = array("mode"); + if($_POST['mode'] == 'hostap') { array_push($reqdfields, "ssid") } $reqdfieldsn = array(gettext("Mode"),gettext("SSID")); do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); check_wireless_mode(); |