commit 52783f9: [Minor] Fix one more issue

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Oct 11 14:56:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-10-11 15:53:30 +0100
URL: https://github.com/rspamd/rspamd/commit/52783f990b910a2e3896b3dd67df7c5512e67664

[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();
 


More information about the Commits mailing list