diff options
-rw-r--r-- | src/libserver/html/html.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |