From 7f95594bc755049749258f4b9e1f1a57d45bf480 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 12 Jan 2021 14:48:33 +0000 Subject: [PATCH] [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) { -- 2.39.5