summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-07-30 19:16:52 +0200
committerAleksander Machniak <alec@alec.pl>2013-07-30 19:16:52 +0200
commitae853367edd2720e2f899aa273ca8ac1a08f0079 (patch)
tree1b55f2770f6e880ab422b7e2a2e453cd59d25b53 /program/steps/mail
parent86dd03677466ceb37e0a2d3d43e8a76472966745 (diff)
Fix downloading binary files with (wrong) text/* content-type (#1489267)
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/get.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc
index 3334caa8b..e0c4e2911 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -357,7 +357,8 @@ else if (strlen($part_id)) {
header("Content-Length: $size");
}
- $sent = $RCMAIL->storage->get_message_part($MESSAGE->uid, $part->mime_id, $part, true);
+ // 8th argument disables re-formatting of text/* parts (#1489267)
+ $sent = $RCMAIL->storage->get_message_part($MESSAGE->uid, $part->mime_id, $part, true, null, false, 0, false);
}
}