esp-arduino-apboot icon indicating copy to clipboard operation
esp-arduino-apboot copied to clipboard

special chars in formular

Open direk opened this issue 9 years ago • 3 comments

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...

direk avatar Sep 08 '15 18:09 direk

I patched that with an ugly quick urldecode function.

DSuds avatar Dec 06 '15 04:12 DSuds

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!

Arismane avatar Jul 20 '16 20:07 Arismane

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.

DSuds avatar Jul 26 '16 21:07 DSuds