diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-18 15:10:52 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-18 15:10:52 +0000 |
commit | 9b6ae0883bfb26e2fafd3717c1e66e948917a1fc (patch) | |
tree | 7888fa06e27cd3d1ea976f7cf518e4c61345569a /src/libmime/mime_parser.c | |
parent | 588ae7ce4366e1eff25bd388cf4cae99c57b63cc (diff) | |
download | rspamd-9b6ae0883bfb26e2fafd3717c1e66e948917a1fc.tar.gz rspamd-9b6ae0883bfb26e2fafd3717c1e66e948917a1fc.zip |
[Fix] Fix Content-Type parsing
Issue: #2757
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r-- | src/libmime/mime_parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index 7151140cb..fb81c36ac 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -609,7 +609,7 @@ rspamd_mime_process_multipart_node (struct rspamd_task *task, for (i = 0; i < hdrs->len; i ++) { hdr = g_ptr_array_index (hdrs, i); - ct = rspamd_content_type_parse (hdr->value, strlen (hdr->value), + ct = rspamd_content_type_parse (hdr->decoded, strlen (hdr->decoded), task->task_pool); /* Here we prefer multipart content-type or any content-type */ @@ -1240,7 +1240,7 @@ rspamd_mime_parse_message (struct rspamd_task *task, else { for (i = 0; i < hdrs->len; i ++) { hdr = g_ptr_array_index (hdrs, i); - ct = rspamd_content_type_parse (hdr->value, strlen (hdr->value), + ct = rspamd_content_type_parse (hdr->decoded, strlen (hdr->decoded), task->task_pool); /* Here we prefer multipart content-type or any content-type */ |