From 52783f990b910a2e3896b3dd67df7c5512e67664 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 11 Oct 2021 15:53:30 +0100 Subject: [PATCH] [Minor] Fix one more issue --- src/libserver/html/html.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index cfd7876b6..1dd980b77 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -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(); -- 2.39.5