From: Arne Fitzenreiter Date: Thu, 28 Feb 2013 23:06:51 +0000 (+0100) Subject: hostapd: fix ascii check and add country code to hostapd.conf. X-Git-Tag: v2.13-core67~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdbeabe2213e045d8d3e5e4eb09949d2bbacdb6f;p=ipfire-2.x.git hostapd: fix ascii check and add country code to hostapd.conf. --- diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi index ce8f051aa7..58c6376fea 100644 --- a/html/cgi-bin/wlanap.cgi +++ b/html/cgi-bin/wlanap.cgi @@ -131,7 +131,7 @@ if ( $wlanapsettings{'ACTION'} eq "$Lang::tr{'save'}" ){ $errormessage .= "$Lang::tr{'wlanap invalid wpa'}
"; } # only ASCII alowed - if ( ($wlanapsettings{'PWD'} !~ m/[\x00-\x7f]/) ){ + if ( !($wlanapsettings{'PWD'} !~ /[^\x00-\x7f]/) ){ $errormessage .= "$Lang::tr{'wlanap invalid wpa'}
"; } } @@ -529,10 +529,12 @@ sub WriteConfig_hostapd{ open (CONFIGFILE, ">/var/ipfire/wlanap/hostapd.conf"); print CONFIGFILE <