summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-12-21 14:49:00 +0100
committerAleksander Machniak <alec@alec.pl>2013-12-21 14:49:00 +0100
commit54029ea959b5f59447e3f0a01a453fd5fe0ba8fa (patch)
treeb8c0bb5864210064407ecd94ed77cd4fd617af5e /program/steps
parent5224a6b39423c70da844638f09fde423944578a2 (diff)
Fix broken text/* attachments when forwarding/editing a message (#1489426)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/compose.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index f75b219ff..aee31bb21 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -1286,12 +1286,12 @@ function rcmail_save_attachment(&$message, $pid)
$temp_dir = unslashify($rcmail->config->get('temp_dir'));
$path = tempnam($temp_dir, 'rcmAttmnt');
if ($fp = fopen($path, 'w')) {
- $message->get_part_content($pid, $fp);
+ $message->get_part_content($pid, $fp, true, 0, false);
fclose($fp);
} else
return false;
} else {
- $data = $message->get_part_content($pid);
+ $data = $message->get_part_content($pid, null, true, 0, false);
}
$mimetype = $part->ctype_primary . '/' . $part->ctype_secondary;