commit 7f95594: [Fix] Html: Do not treat empty tags as block tags

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jan 12 14:49:06 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-01-12 14:48:33 +0000
URL: https://github.com/rspamd/rspamd/commit/7f95594bc755049749258f4b9e1f1a57d45bf480 (HEAD -> master)

[Fix] Html: Do not treat empty tags as block tags

---
 src/libserver/html.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libserver/html.c b/src/libserver/html.c
index c7afc54f9..ccc7f310d 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -863,7 +863,7 @@ rspamd_html_process_tag (rspamd_mempool_t *pool, struct html_content *hc,
 
 	tag->parent = *cur_level;
 
-	if (!(tag->flags & CM_INLINE)) {
+	if (!(tag->flags & (CM_INLINE|CM_EMPTY))) {
 		/* Block tag */
 		if (tag->flags & (FL_CLOSING|FL_CLOSED)) {
 			if (!*cur_level) {


More information about the Commits mailing list