Special characters encoding in 'WPA Shared Key' field
Status: Beta
Brought to you by:
ansanto
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!