From f34e549d59cf66ddca4014783dbc22e0c91b9523 Mon Sep 17 00:00:00 2001
From: puterboy
Date: Thu, 29 Aug 2024 08:05:58 -0400
Subject: [PATCH] [WEBUI] Changed from GET to POST method for config forms with
passwords (#2037)
---
main/ZwebUI.ino | 6 +++---
main/config_WebContent.h | 14 +++++++-------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/main/ZwebUI.ino b/main/ZwebUI.ino
index 32a5c36..94b09da 100644
--- a/main/ZwebUI.ino
+++ b/main/ZwebUI.ino
@@ -1636,10 +1636,10 @@ void WebUISetup() {
server.on("/up", handleUP); // Firmware Upgrade
# endif
server.on("/cn", handleCN); // Configuration
- server.on("/wi", handleWI); // Configure Wifi
- server.on("/mq", handleMQ); // Configure MQTT
+ server.on("/wi", HTTP_POST, handleWI); // Configure Wifi
+ server.on("/mq", HTTP_POST, handleMQ); // Configure MQTT
# ifndef ESPWifiManualSetup
- server.on("/cg", handleCG); // Configure gateway"
+ server.on("/cg", HTTP_POST, handleCG); // Configure gateway"
# endif
server.on("/wu", handleWU); // Configure WebUI
# ifdef ZgatewayLORA
diff --git a/main/config_WebContent.h b/main/config_WebContent.h
index 1cb64d4..9215d0d 100644
--- a/main/config_WebContent.h
+++ b/main/config_WebContent.h
@@ -41,15 +41,15 @@
#endif
// Configuration Menu
-#define configure_1 "
"
-#define configure_2 ""
+#define configure_1 ""
+#define configure_2 ""
/*#if defined(ZgatewayCloud)
# define configure_3 ""
#else
# define configure_3
#endif*/
#ifndef ESPWifiManualSetup
-# define configure_3 ""
+# define configure_3 ""
#else
# define configure_3
#endif
@@ -99,16 +99,16 @@ const char information_body[] = body_header "