From: Vsevolod Stakhov Date: Tue, 15 Jun 2021 12:49:11 +0000 (+0100) Subject: [Minor] Lowecase tag name X-Git-Tag: 3.0~301 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=691323fc2b02fac019fa6420606a2a380ac5f9ff;p=rspamd.git [Minor] Lowecase tag name --- 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()) {