From: Vsevolod Stakhov Date: Mon, 11 Oct 2021 14:20:21 +0000 (+0100) Subject: [Minor] Do not append style and title tags in invisible content X-Git-Tag: 3.1~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5cdc5c6b35898a36f04245ceb882c52d8f58e3e;p=thirdparty%2Frspamd.git [Minor] Do not append style and title tags in invisible content --- diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index 1e5d522419..cfd7876b69 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 & FL_IGNORE)) { + else if (tag->id == Tag_HEAD || (tag->flags & CM_HEAD)) { auto ret = tag->closing.end; calculate_final_tag_offsets();