commit fca7e76: [Fix] HTML: Fix some more SGML tags issues
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Feb 4 15:00:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-02-04 14:59:26 +0000
URL: https://github.com/rspamd/rspamd/commit/fca7e7658c9719499b6e312ec562bb4815b6e7fe (HEAD -> master)
[Fix] HTML: Fix some more SGML tags issues
Issue: #2738
---
src/libserver/html.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/libserver/html.c b/src/libserver/html.c
index e00746c51..c33aacf82 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;
More information about the Commits
mailing list