]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix last quote character parsing in the content-type state machine
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 30 Mar 2021 19:30:09 +0000 (20:30 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 30 Mar 2021 19:30:09 +0000 (20:30 +0100)
src/libmime/content_type.c

index 8c50a484e082d8cff003f9f1c0e1539d7bb986a0..84a93602f6a7622c174c5609f5f07900b6da648e 100644 (file)
@@ -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;
                                }