]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Do not append style and title tags in invisible content
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Oct 2021 14:20:21 +0000 (15:20 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Oct 2021 14:20:21 +0000 (15:20 +0100)
src/libserver/html/html.cxx

index 1e5d5224194f4b9a939a136bc334e23756a25334..cfd7876b69668a483e164680320f27dd21ee33d3 100644 (file)
@@ -1162,7 +1162,7 @@ html_append_tag_content(rspamd_mempool_t *pool,
 
                return ret;
        }
-       else if (tag->id == Tag_HEAD && (tag->flags & FL_IGNORE)) {
+       else if (tag->id == Tag_HEAD || (tag->flags & CM_HEAD)) {
                auto ret = tag->closing.end;
                calculate_final_tag_offsets();