Browse Source

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

tags/3.0
Vsevolod Stakhov 3 years ago
parent
commit
7f95594bc7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libserver/html.c

+ 1
- 1
src/libserver/html.c View 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) {

Loading…
Cancel
Save