summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-02-27 10:18:18 +0000
committerthomascube <thomas@roundcube.net>2009-02-27 10:18:18 +0000
commit0ea569c29f9bdab35ccb429733279db730cd6abd (patch)
tree56fc044fca704ebc5cbdf58dae57aa48b88025c8 /program/steps
parentd68678ee256cbeba8e492f23a2c793cbde18dd90 (diff)
Fix mime-type detection using a hard-coded map (#1485311)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/attachments.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/attachments.inc b/program/steps/mail/attachments.inc
index 64cd546e6..b0a2a7e81 100644
--- a/program/steps/mail/attachments.inc
+++ b/program/steps/mail/attachments.inc
@@ -77,7 +77,7 @@ if (is_array($_FILES['_attachments']['tmp_name'])) {
$id = count($_SESSION['compose']['attachments']);
$_SESSION['compose']['attachments'][] = array(
'name' => $_FILES['_attachments']['name'][$i],
- 'mimetype' => rc_mime_content_type($tmpfname, $_FILES['_attachments']['type'][$i]),
+ 'mimetype' => rc_mime_content_type($tmpfname, $_FILES['_attachments']['name'][$i], $_FILES['_attachments']['type'][$i]),
'path' => $tmpfname,
);