chriscook8 / esp-arduino-apboot

ESP8266 wifi configurator in Arduino lang.. uses eeprom for configs, boots to AP mode if no working config found
153 stars 61 forks source link

special chars in formular #4

Open direk opened 8 years ago

direk commented 8 years ago

Hi,

I am trying this code and it's great, but I have problem while saving password with special chars, eg "!" is being saved as three chars: %21

I am wondering if it can be easily patched, or just how to change GET method to POST...

DSuds commented 8 years ago

I patched that with an ugly quick urldecode function.

Arismane commented 8 years ago

Dear DSuds,

Can you please explain how did you solved the special characters issue inside the code? I didn't understand the urldecode function.. Please help I have the exact problem. Thank you very much!

DSuds commented 8 years ago

I wrote a function to quickly change URL Encoded characters back so - from "x%21%20%21x" to "x! !x"

For example: qpass = urldecode(req.substring(req.lastIndexOf('=')+1)); takes the information after the last = and replaces the encoded sections with the characters.