From: Vsevolod Stakhov Date: Mon, 4 Feb 2019 14:59:26 +0000 (+0000) Subject: [Fix] HTML: Fix some more SGML tags issues X-Git-Tag: 1.9.0~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fca7e7658c9719499b6e312ec562bb4815b6e7fe;p=thirdparty%2Frspamd.git [Fix] HTML: Fix some more SGML tags issues Issue: #2738 --- diff --git a/src/libserver/html.c b/src/libserver/html.c index e00746c51b..c33aacf826 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -2589,8 +2589,7 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, /* Empty tag */ hc->flags |= RSPAMD_HTML_FLAG_BAD_ELEMENTS; state = tag_end; - p ++; - break; + continue; default: state = tag_content; substate = 0; @@ -2640,6 +2639,7 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, case xml_tag_end: if (t == '>') { state = tag_end; + continue; } else { hc->flags |= RSPAMD_HTML_FLAG_BAD_ELEMENTS; @@ -2656,6 +2656,7 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, } else if (t == '>' && obrace == ebrace) { state = tag_end; + continue; } p ++; break;