This commit is contained in:
Shawn A
2018-03-21 13:30:53 -05:00
parent c2cbe3015b
commit 32d6f11217
2 changed files with 46 additions and 2 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ bool WiFiManager::addParameter(WiFiManagerParameter *p) {
// check param id is valid, unless null
if(p->getID()){
for (size_t i = 0; i < strlen(p->getID()); i++){
if(!isAlphaNumeric(p->getID()[i])){
if(!isAlphaNumeric(p->getID()[i]) && !p->getID()[i]=='_'){
DEBUG_WM(DEBUG_ERROR,"[ERROR] parameter IDs can only contain alpha numeric chars");
return false;
}