]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lowecase tag name
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 Jun 2021 12:49:11 +0000 (13:49 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 Jun 2021 12:49:11 +0000 (13:49 +0100)
src/libserver/html/html.cxx

index fda68bf045d5ad9895c9284559ee7b7428c8ee14..f47fc272ef186bc9cb6f326674dc8013c581305f 100644 (file)
@@ -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()) {