diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-11 15:20:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-11 15:20:21 +0100 |
commit | b5cdc5c6b35898a36f04245ceb882c52d8f58e3e (patch) | |
tree | 5989bfcdfe094b0539afc003d7eeda892f134161 /src/libserver/html | |
parent | 51a37928e9cb4be0984a0e3580a79bc2dec0891e (diff) | |
download | rspamd-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.cxx | 2 |
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(); |