From 83d12ecba27907b80db976ab19f436543f604d4b Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 1 Jul 2019 09:47:09 +0200 Subject: [PATCH] max ssid/password lengths --- lib/MyESP/MyESP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MyESP/MyESP.cpp b/lib/MyESP/MyESP.cpp index 7e891615a..8eb3d00c2 100644 --- a/lib/MyESP/MyESP.cpp +++ b/lib/MyESP/MyESP.cpp @@ -2051,7 +2051,7 @@ void MyESP::_webResetPage() { } else { // Create a string containing all the arguments // Check to see if there are new values (also doubles to check the length of the new value is long enough) - if (webServer.arg("newssid").length() < MAX_SSID_LEN) { + if (webServer.arg("newssid").length() <= MAX_SSID_LEN) { if (webServer.arg("newssid").length() == 0) { _wifi_ssid = NULL; } else { @@ -2059,7 +2059,7 @@ void MyESP::_webResetPage() { } } - if (webServer.arg("newpassword").length() < MAX_PWD_LEN) { + if (webServer.arg("newpassword").length() <= MAX_PWD_LEN) { if (webServer.arg("newpassword").length() == 0) { _wifi_password = NULL; } else {