From 079cd54088506c8e9a7dd14401d6883f3cc59bff Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Tue, 17 Aug 2021 13:23:49 -0300 Subject: [PATCH 1/3] Moved HTTP Referer Loglevel from 3 to 2 --- tasmota/xdrv_01_webserver.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index 04a403b3f..e528f64d6 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -666,7 +666,7 @@ bool HttpCheckPriviledgedAccess(bool autorequestauth = true) return true; } } - AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_HTTP "Referer denied")); + AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_HTTP "Referer denied")); return false; } else { return true; From cbab3bdfb073d0405302cdf65d17cf47c8c2bda6 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Tue, 17 Aug 2021 13:45:30 -0300 Subject: [PATCH 2/3] http referer error message --- tasmota/xdrv_01_webserver.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index e528f64d6..929ccbde0 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -666,7 +666,7 @@ bool HttpCheckPriviledgedAccess(bool autorequestauth = true) return true; } } - AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_HTTP "Referer denied")); + AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_HTTP "HTP: Referer denied. Use 'SO128 1' for HTTP API commands. 'Webpassword' is recommended.")); return false; } else { return true; From b50775bcf92df1f13eaee168f080b08fb2e70f39 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Tue, 17 Aug 2021 13:48:41 -0300 Subject: [PATCH 3/3] http referer error message --- tasmota/xdrv_01_webserver.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index 929ccbde0..27f8bd981 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -666,7 +666,7 @@ bool HttpCheckPriviledgedAccess(bool autorequestauth = true) return true; } } - AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_HTTP "HTP: Referer denied. Use 'SO128 1' for HTTP API commands. 'Webpassword' is recommended.")); + AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_HTTP "Referer denied. Use 'SO128 1' for HTTP API commands. 'Webpassword' is recommended.")); return false; } else { return true;