Skip to content

Commit

Permalink
Revert "Both infoids and _ap_password are intialized by check time. (#…
Browse files Browse the repository at this point in the history
…1344)"

This reverts commit 9f6dcad.
  • Loading branch information
tablatronix committed Feb 24, 2022
1 parent d8c81ec commit fd7f400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ void WiFiManager::handleInfo() {
#endif

for(size_t i=0; i<infos;i++){
if(!infoids[i].isEmpty()) page += getInfoData(infoids[i]);
if(infoids[i] != NULL) page += getInfoData(infoids[i]);
}
page += F("</dl>");
if(_showInfoUpdate){
Expand Down Expand Up @@ -3266,7 +3266,7 @@ String WiFiManager::toStringIp(IPAddress ip) {

boolean WiFiManager::validApPassword(){
// check that ap password is valid, return false
if (_apPassword.isEmpty()) _apPassword = "";
if (_apPassword == NULL) _apPassword = "";
if (_apPassword != "") {
if (_apPassword.length() < 8 || _apPassword.length() > 63) {
#ifdef WM_DEBUG_LEVEL
Expand Down

0 comments on commit fd7f400

Please sign in to comment.