summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authorvengadrew <vengadrew@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-04-26 21:49:38 +0000
committervengadrew <vengadrew@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-04-26 21:49:38 +0000
commit9a789308f21190cc32577ab57c367b5aa0593dd2 (patch)
tree5442f2728964447ace558356a42230b15bebdb27 /roundcubemail/program
parent534fc8827992919df5f11f0b2cae0464b00c47a9 (diff)
Corrected issue forwarding attachments that use content-description rather than filename or name disposition headers
git-svn-id: https://svn.roundcube.net/trunk@201 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/steps/mail/compose.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc
index 5969e05a8..d278279d9 100644
--- a/roundcubemail/program/steps/mail/compose.inc
+++ b/roundcubemail/program/steps/mail/compose.inc
@@ -414,6 +414,11 @@ function rcmail_create_forward_body($body)
$_SESSION['compose']['attachments'][] = array('name' => $part->ctype_parameters['name'],
'mimetype' => $part->ctype_primary . '/' . $part->ctype_secondary,
'path' => $tmp_path);
+
+ else if ($part->headers['content-description'])
+ $_SESSION['compose']['attachments'][] = array('name' => $part->headers['content-description'],
+ 'mimetype' => $part->ctype_primary . '/' . $part->ctype_secondary,
+ 'path' => $tmp_path);
}
}
}