From mboxrd@z Thu Jan 1 00:00:00 1970 From: git@ipfire.org To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 3af89eb5857600d79926ac2c4bf032d239422536 Date: Sun, 24 Feb 2013 13:48:26 +0100 Message-ID: <20130224124827.0085220134@argus.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4146017207131040153==" List-Id: --===============4146017207131040153== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, next has been updated via 3af89eb5857600d79926ac2c4bf032d239422536 (commit) via fe3f3050bd0ca87b5593417e2623e92b8a9e12f7 (commit) from 7135f608ba972cf2d83f198870720fabfca32e2c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 3af89eb5857600d79926ac2c4bf032d239422536 Author: Arne Fitzenreiter Date: Sun Feb 24 13:47:41 2013 +0100 wlanap.cgi: check pwd for non-ascii chars. commit fe3f3050bd0ca87b5593417e2623e92b8a9e12f7 Author: Arne Fitzenreiter Date: Sun Feb 24 13:44:03 2013 +0100 wlanap.cgi: set channel manually if no channels are reported. ----------------------------------------------------------------------- Summary of changes: html/cgi-bin/wlanap.cgi | 28 +++++++++++++++++++++++----- lfs/hostapd | 2 +- 2 files changed, 24 insertions(+), 6 deletions(-) Difference in files: diff --git a/html/cgi-bin/wlanap.cgi b/html/cgi-bin/wlanap.cgi index 83d65db..2233af9 100644 --- a/html/cgi-bin/wlanap.cgi +++ b/html/cgi-bin/wlanap.cgi @@ -2,7 +2,7 @@ ############################################################################= ### # = # # IPFire.org - A linux based firewall = # -# Copyright (C) 2005-2012 IPFire Team = # +# Copyright (C) 2005-2013 IPFire Team = # # = # # This program is free software: you can redistribute it and/or modify = # # it under the terms of the GNU General Public License as published by = # @@ -124,11 +124,16 @@ if ( $wlanapsettings{'ACTION'} eq "$Lang::tr{'wlanap de= l interface'}" ){ } =20 if ( $wlanapsettings{'ACTION'} eq "$Lang::tr{'save'}" ){ - # verify WPA Passphrase, must be 8 .. 63 characters - only wiht enabled enc + # verify WPA Passphrase - only with enabled enc if (($wlanapsettings{'ENC'} eq "wpa1") || ($wlanapsettings{'ENC'} eq "wpa2"= ) || ($wlanapsettings{'ENC'} eq "wpa1+2")){ + # must be 8 .. 63 characters if ( (length($wlanapsettings{'PWD'}) < 8) || (length($wlanapsettings{'PWD'= }) > 63)){ $errormessage .=3D "$Lang::tr{'wlanap invalid wpa'}
"; } + # only ASCII alowed + if ( ($wlanapsettings{'PWD'} !~ m/[\x00-\x7f]/) ){ + $errormessage .=3D "$Lang::tr{'wlanap invalid wpa'}
"; + } } =20 if ( $errormessage eq '' ){ @@ -391,16 +396,29 @@ print <WPA1+2 +END +; + +if ( scalar @channellist > 0 ){ + print <$Lang::tr{'wlanap channel'}: = " +} else { + print <$Lang::tr{'wlanap channel'}: = + + +END +; } =20 print < $Lang::tr{'wlanap country'}: =