From abcc97428664c9925c235e9160db20fc26e86965 Mon Sep 17 00:00:00 2001 From: luc Date: Fri, 5 Jun 2015 09:38:41 +0800 Subject: [PATCH] Allows any char but space in SSID as only digit and alpha is too restrictive --- esp8266/webinterface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/esp8266/webinterface.cpp b/esp8266/webinterface.cpp index f4174c7f..2e156986 100644 --- a/esp8266/webinterface.cpp +++ b/esp8266/webinterface.cpp @@ -206,7 +206,7 @@ const char CHANNEL_ID[] PROGMEM = "CHANNEL"; const char SUBNET_ID[] PROGMEM = "SUBNET"; const char GATEWAY_NAME[] PROGMEM = "Gateway"; const char SUBNET_NAME[] PROGMEM = "Subnet"; -const char ERROR_INCORRECT_SSID[] PROGMEM = "Incorrect SSID :only char and digit, no space, limited to 33 char length"; +const char ERROR_INCORRECT_SSID[] PROGMEM = "Incorrect SSID : no space, limited to 33 char length"; const char ERROR_INCORRECT_PASSWORD[] PROGMEM = "Incorrect password : space not allowed, limited to 8~64 char length
"; const char ERROR_INCORRECT_PORT[] PROGMEM = "Incorrect port : 1~65000 only
"; const char ERROR_INCORRECT_PORT2[] PROGMEM = "Incorrect port : web port aannot be same as data port
"; @@ -257,7 +257,8 @@ bool WEBINTERFACE_CLASS::isSSIDValid(const char * ssid) for (int i=0;i < strlen(ssid);i++) { c = ssid[i]; - if (!(isdigit(c) || isalpha(c))) return false; + //if (!(isdigit(c) || isalpha(c))) return false; + if (c==' ') return false; } return true; }