commit 40101ed: [Fix] Fix logic in HTML processing FSM

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Nov 19 10:56:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-11-19 10:35:16 +0000
URL: https://github.com/rspamd/rspamd/commit/40101edb0e09137b69f3dad467b3816f0bbdecab

[Fix] Fix logic in HTML processing FSM

---
 src/libserver/html/html.cxx | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index 67adac9bc..5260ba690 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -2083,11 +2083,6 @@ html_process_input(rspamd_mempool_t *pool,
 
 	/* Leftover after content */
 	switch (state) {
-	case tag_end_opening:
-		if (cur_tag != nullptr) {
-			process_opening_tag();
-		}
-		break;
 	case tags_limit_overflow:
 		html_append_parsed(hc, {c, (std::size_t) (end - c)},
 				false, end - start, hc->parsed);


More information about the Commits mailing list