summaryrefslogtreecommitdiffstats
path: root/src/libserver/html
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-11 15:20:21 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-11 15:20:21 +0100
commitb5cdc5c6b35898a36f04245ceb882c52d8f58e3e (patch)
tree5989bfcdfe094b0539afc003d7eeda892f134161 /src/libserver/html
parent51a37928e9cb4be0984a0e3580a79bc2dec0891e (diff)
downloadrspamd-b5cdc5c6b35898a36f04245ceb882c52d8f58e3e.tar.gz
rspamd-b5cdc5c6b35898a36f04245ceb882c52d8f58e3e.zip
[Minor] Do not append style and title tags in invisible content
Diffstat (limited to 'src/libserver/html')
-rw-r--r--src/libserver/html/html.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index 1e5d52241..cfd7876b6 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();