-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with special character in password #804
Comments
in what password? |
I'm trying to connect to an AP with SSID name = Leonardo and Password = "32 <@ werpW & uqyW = dmk0FSD". So, I understand that WIFIManager is not able to connect because it does not understand the special characters <@ = + ... |
ok, let me check it out, must be an encoding issue in the form submission |
I dont know that this is a wm problem are you sure esp supports this password, can you connect manually? |
Yes, I can. See the example bellow: Code: `/*
*/ #include <WiFi.h> const char* ssid = "Leonardo"; const char* host = "data.sparkfun.com"; void setup()
Debug 'Connecting to Leonardo |
I am trying to debug the password that the program is reading, however I am having difficulty finding the password variable. bool WiFiManager::wifiConnectDefault(){ |
so you did It just sends it to the esp lib |
Hi tablatronix, As you can see bellow, the problem is in the character "=", per some reason it is scaping. Debbug rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) |
probably because it is a
i did not look into the parser deep enough but this may be misread as an additional key/value pair from the webserver also transmitting a password by get in plain text is maybe not the very best option as a side thought |
I solved this problem changing the file strings_en.h, as bellow: Before: After: |
Huh? What file was i reading then? |
must have not pulled branch in a very long time |
hmm interesting, I guess some browsers automatically handle the enctype |
seems like a base64 conversion of the password (maybe with js? ) would help (but you'll have to decode it just before this lines:
) |
tried added encoding -- still failing for me about to tie in the base64 encode/decode -- my current guess is that the strings are being url encoded and not url decoded before being implemented though I've yet to really crawl through to verify that... |
@amites where's the code that you've used? i'll like to see it. |
your still having issues with this? I added debugging, what do you logs say ? |
I forked the repo at https://github.com/amites/WiFiManager/tree/cmidgley All I committed so far was added enc-type coding to the different forms, and monitored the serial output I'm pretty green to C++ so wasn't sure how to add the base64 decode referred to in the above issue I can see that special characters are URL encoded as part of the |
I posted above that I could not reproduce so it must be a browser dependant issue. I also added debugging to clearly show what was received. Not sure what else can be done, charaet encoding should work on all browsers |
Ok are you not using development , this issue is for development and fixes are applied there only atm |
I will close this if it is not reproducible. let me know if it needs to be tested more. |
Description
I am have problem when I use special characters in the passwords.
Exemple: "32<@werpW&uqyW=dmk0FSD"
Could anybody help me?
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
ESP Core Version: 2.4.0, staging
Debug Messages
*WM: [2] ESP32 event handler enabled
*WM: [2] Connecting as wifi client...
*WM: [2] setSTAConfig static ip not set
*WM: [3] WIFI station disconnect
*WM: [1] Connecting to saved AP: Leonardo
*WM: [3] WiFi station enable
*WM: [2] 30000 ms connectTimeout set
*WM: [2] 30000 ms timeout, waiting for connect...
*WM: [2] Connection result: WL_DISCONNECTED
*WM: [3] lastconxresulttmp: WL_IDLE_STATUS
*WM: [3] lastconxresult: WL_DISCONNECTED
*WM: [1] AutoConnect: FAILED
*WM: [2] AccessPoint set password is VALID
*WM: [1] password
*WM: [3] WIFI station disconnect
*WM: [3] WiFi station enable
*WM: [2] Disabling STA
*WM: [2] Enabling AP
*WM: [1] StartAP with SSID: AutoConnectAP
*WM: [1] AP IP address: 192.168.4.1
*WM: [3] setupConfigPortal
*WM: [1] Starting Web Portal
*WM: [3] dns server started with ip: 192.168.4.1
*WM: [2] HTTP server started
*WM: [2] WiFi Scan ASYNC started
*WM: [2] Config Portal Running, blocking, waiting for clients...
*WM: [2] NUM CLIENTS: 0
The text was updated successfully, but these errors were encountered: