mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
max ssid/password lengths
This commit is contained in:
@@ -2051,7 +2051,7 @@ void MyESP::_webResetPage() {
|
|||||||
} else {
|
} else {
|
||||||
// Create a string containing all the arguments
|
// 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)
|
// 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) {
|
if (webServer.arg("newssid").length() == 0) {
|
||||||
_wifi_ssid = NULL;
|
_wifi_ssid = NULL;
|
||||||
} else {
|
} 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) {
|
if (webServer.arg("newpassword").length() == 0) {
|
||||||
_wifi_password = NULL;
|
_wifi_password = NULL;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user