commit 64df504: [Fix] HTML: Fix HTML comments with many dashes

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jan 30 17:28:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-01-30 17:24:30 +0000
URL: https://github.com/rspamd/rspamd/commit/64df50450deffdc134671ecacb8e883f7c532eea (HEAD -> master)

[Fix] HTML: Fix HTML comments with many dashes

---
 src/libserver/html.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libserver/html.c b/src/libserver/html.c
index 9aaed5fb3..e00746c51 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -2673,7 +2673,7 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc,
 			if (t == '-') {
 				ebrace ++;
 			}
-			else if (t == '>' && ebrace == 2) {
+			else if (t == '>' && ebrace >= 2) {
 				state = tag_end;
 				continue;
 			}


More information about the Commits mailing list