summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-01 15:09:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-01 15:09:34 +0100
commitd6ae9647d2d5ad8ad291c8d462acecbc3c74dd13 (patch)
treec7f59b64bb48503967d63b9cd824469f9c959664 /src
parente0202bf46cc5e3641bec6a7e6b5b986ff6cc283d (diff)
downloadrspamd-d6ae9647d2d5ad8ad291c8d462acecbc3c74dd13.tar.gz
rspamd-d6ae9647d2d5ad8ad291c8d462acecbc3c74dd13.zip
[Fix] Deal with double eqsigns when decoding headers
Diffstat (limited to 'src')
-rw-r--r--src/libmime/mime_headers.c5
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;