mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-17 03:55:52 +08:00
Allows any char but space in SSID
as only digit and alpha is too restrictive
This commit is contained in:
parent
e87497726a
commit
abcc974286
@ -206,7 +206,7 @@ const char CHANNEL_ID[] PROGMEM = "CHANNEL";
|
|||||||
const char SUBNET_ID[] PROGMEM = "SUBNET";
|
const char SUBNET_ID[] PROGMEM = "SUBNET";
|
||||||
const char GATEWAY_NAME[] PROGMEM = "Gateway";
|
const char GATEWAY_NAME[] PROGMEM = "Gateway";
|
||||||
const char SUBNET_NAME[] PROGMEM = "Subnet";
|
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<BR>";
|
const char ERROR_INCORRECT_PASSWORD[] PROGMEM = "Incorrect password : space not allowed, limited to 8~64 char length<BR>";
|
||||||
const char ERROR_INCORRECT_PORT[] PROGMEM = "Incorrect port : 1~65000 only<BR>";
|
const char ERROR_INCORRECT_PORT[] PROGMEM = "Incorrect port : 1~65000 only<BR>";
|
||||||
const char ERROR_INCORRECT_PORT2[] PROGMEM = "Incorrect port : web port aannot be same as data port<BR>";
|
const char ERROR_INCORRECT_PORT2[] PROGMEM = "Incorrect port : web port aannot be same as data port<BR>";
|
||||||
@ -257,7 +257,8 @@ bool WEBINTERFACE_CLASS::isSSIDValid(const char * ssid)
|
|||||||
for (int i=0;i < strlen(ssid);i++)
|
for (int i=0;i < strlen(ssid);i++)
|
||||||
{
|
{
|
||||||
c = 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user