summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorJoecowboy <i7wasn7m3@gmail.com>2012-02-18 12:25:14 -0600
committerJoecowboy <i7wasn7m3@gmail.com>2012-02-18 12:25:14 -0600
commitebc2ee612f265cc996b465b2c2101378d5bdf88a (patch)
tree7018ee873a7cb5272c304603828c6c5e1fcdb021 /usr/local
parente32805d9ef2e06f61c4f7146e69800f2014eb8e4 (diff)
downloadpfsense-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/local')
-rwxr-xr-xusr/local/www/interfaces.php5
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();
OpenPOWER on IntegriCloud