summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-02-07 07:50:37 +0000
committerthomascube <thomas@roundcube.net>2008-02-07 07:50:37 +0000
commit6f2f2d0ffdf21ac0dce85b5dae8809a49b14a7a2 (patch)
tree981aadfb4356ecb79254d116f65b73c120355ab2 /program/steps/mail
parent7e344087de3f151dda7618e950b43c23664776a3 (diff)
Truncate attachment filenames to 55 characters (#1484757) and fix misspelled function name
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/get.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc
index dad49d370..6aca13101 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -108,7 +108,7 @@ else if ($pid = get_input_value('_part', RCUBE_INPUT_GET))
{
header(sprintf('Content-Disposition: %s; filename="%s";',
$_GET['_download'] ? 'attachment' : 'inline',
- $part->filename ? $part->filename : "roundcube.$ctype_secondary"));
+ $part->filename ? abbreviate_string($part->filename, 55) : "roundcube.$ctype_secondary"));
// turn off output buffering and print part content
$IMAP->get_message_part($MESSAGE['UID'], $part->mime_id, $part, true);