commit 983084a: [Fix] Fix last quote character parsing in the content-type state machine

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Mar 30 19:35:06 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-03-30 20:30:09 +0100
URL: https://github.com/rspamd/rspamd/commit/983084adb045c84c60e8135b43294c3b37253ea5

[Fix] Fix last quote character parsing in the content-type state machine

---
 src/libmime/content_type.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libmime/content_type.c b/src/libmime/content_type.c
index 8c50a484e..84a93602f 100644
--- a/src/libmime/content_type.c
+++ b/src/libmime/content_type.c
@@ -509,6 +509,7 @@ rspamd_content_type_parser (gchar *in, gsize len, rspamd_mempool_t *pool)
 
 				if (p == end) {
 					/* Last quote: done... */
+					state = parse_space;
 					break;
 				}
 


More information about the Commits mailing list