From 82c42eb32e48137b3c5c0f3ffb393a17a8e30f78 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 30 Mar 2021 20:30:28 +0100 Subject: [Fix] Fix rfc2047 embedded into rfc2231 pieces in special headers --- src/libmime/mime_parser.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libmime/mime_parser.c') diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index a89b76b3a..0363d4514 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -501,9 +501,9 @@ rspamd_mime_part_get_cd (struct rspamd_task *task, struct rspamd_mime_part *part gsize hlen; cd = NULL; - if (cur->decoded) { - hlen = strlen (cur->decoded); - cd = rspamd_content_disposition_parse (cur->decoded, hlen, + if (cur->value) { + hlen = strlen (cur->value); + cd = rspamd_content_disposition_parse (cur->value, hlen, task->task_pool); } @@ -887,7 +887,7 @@ rspamd_mime_process_multipart_node (struct rspamd_task *task, if (hdr != NULL) { DL_FOREACH (hdr, cur) { - ct = rspamd_content_type_parse (cur->decoded, strlen (cur->decoded), + ct = rspamd_content_type_parse (cur->value, strlen (cur->value), task->task_pool); /* Here we prefer multipart content-type or any content-type */ @@ -1521,7 +1521,7 @@ rspamd_mime_parse_message (struct rspamd_task *task, } else { DL_FOREACH (hdr, cur) { - ct = rspamd_content_type_parse (cur->decoded, strlen (cur->decoded), + ct = rspamd_content_type_parse (cur->value, strlen (cur->value), task->task_pool); /* Here we prefer multipart content-type or any content-type */ -- cgit v1.2.3