]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix one more issue
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Oct 2021 14:53:30 +0000 (15:53 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Oct 2021 14:53:30 +0000 (15:53 +0100)
src/libserver/html/html.cxx

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