aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_parser.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-30 20:30:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-03-30 20:30:28 +0100
commit82c42eb32e48137b3c5c0f3ffb393a17a8e30f78 (patch)
treec7e9a552248f1f31740d883008caedd503c4a4e8 /src/libmime/mime_parser.c
parent983084adb045c84c60e8135b43294c3b37253ea5 (diff)
downloadrspamd-82c42eb32e48137b3c5c0f3ffb393a17a8e30f78.tar.gz
rspamd-82c42eb32e48137b3c5c0f3ffb393a17a8e30f78.zip
[Fix] Fix rfc2047 embedded into rfc2231 pieces in special headers
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r--src/libmime/mime_parser.c10
1 files changed, 5 insertions, 5 deletions
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 */