commit 691323f: [Minor] Lowecase tag name

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jun 15 14:28:06 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-06-15 13:49:11 +0100
URL: https://github.com/rspamd/rspamd/commit/691323fc2b02fac019fa6420606a2a380ac5f9ff

[Minor] Lowecase tag name

---
 src/libserver/html/html.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index fda68bf04..f47fc272e 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -251,6 +251,7 @@ find_tag_component_name(rspamd_mempool_t *pool,
 	auto *p = rspamd_mempool_alloc_buffer(pool, end - begin);
 	memcpy(p, begin, end - begin);
 	auto len = decode_html_entitles_inplace(p, end - begin);
+	len = rspamd_str_lc(p, len);
 	auto known_component_it = html_components_map.find({p, len});
 
 	if (known_component_it != html_components_map.end()) {


More information about the Commits mailing list