diff --git a/main/webserver_ota.cpp b/main/webserver_ota.cpp index 5e1f5d7..1c13ead 100644 --- a/main/webserver_ota.cpp +++ b/main/webserver_ota.cpp @@ -185,7 +185,7 @@ esp_err_t webserver_ota_handler(httpd_req_t *req) body += "Trigger Update"; } - body += fmt::format("", esphttpdutils::htmlentities(stringSettings.otaUrl)); + body += fmt::format("", esphttpdutils::htmlentities(stringSettings.otaUrl)); { HtmlTag buttonTag{"button", "type=\"submit\"", body}; diff --git a/main/webserver_settings.cpp b/main/webserver_settings.cpp index 4d1571c..0868bae 100644 --- a/main/webserver_settings.cpp +++ b/main/webserver_settings.cpp @@ -42,7 +42,7 @@ typename std::enable_if< , bool>::type showInputForSetting(std::string_view key, T value, std::string &body) { - body += fmt::format("", + body += fmt::format("", esphttpdutils::htmlentities(key), value, std::numeric_limits::min(), @@ -56,7 +56,7 @@ typename std::enable_if< , bool>::type showInputForSetting(std::string_view key, T value, std::string &body) { - body += fmt::format("", + body += fmt::format("", esphttpdutils::htmlentities(key), value[0], value[1], diff --git a/main/webserver_stringsettings.cpp b/main/webserver_stringsettings.cpp index e244378..716a1a0 100644 --- a/main/webserver_stringsettings.cpp +++ b/main/webserver_stringsettings.cpp @@ -81,7 +81,7 @@ esp_err_t webserver_stringSettings_handler(httpd_req_t *req) { HtmlTag divTag{"div", "class=\"form-table-cell\"", body}; - body += fmt::format("", + body += fmt::format("", esphttpdutils::htmlentities(key), esphttpdutils::htmlentities(value)); }