From: Vsevolod Stakhov Date: Tue, 12 Jan 2021 14:48:33 +0000 (+0000) Subject: [Fix] Html: Do not treat empty tags as block tags X-Git-Tag: 3.0~771 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f95594bc755049749258f4b9e1f1a57d45bf480;p=rspamd.git [Fix] Html: Do not treat empty tags as block tags --- 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) {