summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-02-19 16:56:02 +0100
committerAleksander Machniak <alec@alec.pl>2013-02-19 16:56:02 +0100
commit726297e5f8d84cbb434f9c4185f3cd1aaebe8e6e (patch)
tree5148ac4527884727030afb1f9a0654dd46c69e8e /program/steps/mail
parent9e46fb535ddce461a11f57d4ce75a43c3ad651e8 (diff)
Add workaround for invalid message charset detection by IMAP servers (#1488968)
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 6b8879dcf..36ac1aa2b 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1854,7 +1854,7 @@ function rcmail_attachment_name($attachment, $display = false)
$filename = rcube_label('htmlmessage');
}
else {
- $ext = rcube_mime::get_mime_extensions($attachment->mimetype);
+ $ext = (array) rcube_mime::get_mime_extensions($attachment->mimetype);
$ext = array_shift($ext);
$filename = rcube_label('messagepart') . ' ' . $attachment->mime_id;
if ($ext) {