diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-01 15:09:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-01 15:09:34 +0100 |
commit | d6ae9647d2d5ad8ad291c8d462acecbc3c74dd13 (patch) | |
tree | c7f59b64bb48503967d63b9cd824469f9c959664 | |
parent | e0202bf46cc5e3641bec6a7e6b5b986ff6cc283d (diff) | |
download | rspamd-d6ae9647d2d5ad8ad291c8d462acecbc3c74dd13.tar.gz rspamd-d6ae9647d2d5ad8ad291c8d462acecbc3c74dd13.zip |
[Fix] Deal with double eqsigns when decoding headers
-rw-r--r-- | src/libmime/mime_headers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c index 58e1b7ca0..34cafd8cb 100644 --- a/src/libmime/mime_headers.c +++ b/src/libmime/mime_headers.c @@ -659,9 +659,10 @@ rspamd_mime_header_decode (rspamd_mempool_t *pool, const gchar *in, qmarks = 0; } else { - g_string_append_len (out, c, 2); - c = p + 1; + g_string_append_len (out, c, 1); + c = p; state = parse_normal; + continue; /* Deal with == case */ } p ++; break; |