Menu

#2 Special characters encoding in 'WPA Shared Key' field

open
nobody
5
2007-08-27
2007-08-27
Anonymous
No

There is a problem in the way the profile.conf file is written by the configuration web page. Special characters in the 'WPA Shared Key' field (might be the case for other fields) are converted according to RFC 1738.

pm2036 from FrancoFON provided this solution:

to add:

------------
urldecode(){
echo -e "$(sed 'y/+/ /; s/%/\\x/g')"
}
------------

and replace :

------------
get_parameter () {
echo "$query" | tr '&' '\n' | grep "^$1=" | head -1 | sed "s/.*=//"
}
------------

by

------------
get_parameter () {
echo "$query" | tr '&' '\n' | grep "^$1=" | head -1 | sed "s/.*=//" | urldecode
}
------------

see: http://forums.fon.com/viewtopic.php?p=42013#42013

Cheers!

Discussion


Log in to post a comment.

Monday.com Logo