Donate Share

repeater, FON expander, mesh network

Tracker: Bugs

5 Special characters encoding in 'WPA Shared Key' field - ID: 1782695
Last Update: Tracker Item Submitted ( nobody )

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!


Nobody/Anonymous ( nobody ) - 2007-08-27 17:41

5

Open

None

Nobody/Anonymous

ponte2 - script

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.