commit 90dfe4e: [Minor] Fix triggering of the suspicious url rule on percent encoding

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Nov 19 09:56:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-11-19 09:53:49 +0000
URL: https://github.com/rspamd/rspamd/commit/90dfe4e87aa1bc3f7f700729c47645411aa7e9d4 (HEAD -> master)

[Minor] Fix triggering of the suspicious url rule on percent encoding

---
 src/libserver/html/html_url.cxx | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/libserver/html/html_url.cxx b/src/libserver/html/html_url.cxx
index ff0834040..93fef68d1 100644
--- a/src/libserver/html/html_url.cxx
+++ b/src/libserver/html/html_url.cxx
@@ -414,7 +414,6 @@ html_process_url(rspamd_mempool_t *pool, std::string_view &input)
 						/* Replace it back */
 						*d++ = (char)(codepoint & 0xff);
 						i += 2;
-						has_bad_chars = TRUE;
 					}
 					else {
 						*d++ = s[i];


More information about the Commits mailing list