diff options
author | Scott Ullrich <sullrich@gmail.com> | 2012-02-18 10:33:07 -0800 |
---|---|---|
committer | Scott Ullrich <sullrich@gmail.com> | 2012-02-18 10:33:07 -0800 |
commit | f47823904b3ab0f40e6c0c5cc41a300e590e808b (patch) | |
tree | 7018ee873a7cb5272c304603828c6c5e1fcdb021 /usr/local/www/interfaces.php | |
parent | e32805d9ef2e06f61c4f7146e69800f2014eb8e4 (diff) | |
parent | ebc2ee612f265cc996b465b2c2101378d5bdf88a (diff) | |
download | pfsense-f47823904b3ab0f40e6c0c5cc41a300e590e808b.zip pfsense-f47823904b3ab0f40e6c0c5cc41a300e590e808b.tar.gz |
Merge pull request #51 from Joecowboy/master
Fix for White Space causing an error with Wifi Mode
Diffstat (limited to 'usr/local/www/interfaces.php')
-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(); |