]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] HTML: Fix HTML comments with many dashes
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Jan 2019 17:24:30 +0000 (17:24 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Jan 2019 17:24:30 +0000 (17:24 +0000)
src/libserver/html.c

index 9aaed5fb39688dd2dd030cefdccd37d9a5549986..e00746c51b0ab9a414c6508abb180cc3f0e2fc90 100644 (file)
@@ -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;
                        }