]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Html: Do not treat empty tags as block tags
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 12 Jan 2021 14:48:33 +0000 (14:48 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 12 Jan 2021 14:48:33 +0000 (14:48 +0000)
src/libserver/html.c

index c7afc54f90e0a7bb7192fe187331bb0924867eda..ccc7f310d09340bf1e4e6ad0f9e9f24151923cb4 100644 (file)
@@ -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) {