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:49 +0100
commitfd777a86270494e45b38c4bfd8a45625ea46425b (patch)
tree7c17b74fe417eaf4007a158b00e11e6d8171732d /program/steps/mail
parent0ffb1a7af33bddd30d52080c99e5cf4fd5757416 (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 f82e60a36..5058dccc6 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1850,7 +1850,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) {