From 6f2f2d0ffdf21ac0dce85b5dae8809a49b14a7a2 Mon Sep 17 00:00:00 2001 From: thomascube Date: Thu, 7 Feb 2008 07:50:37 +0000 Subject: Truncate attachment filenames to 55 characters (#1484757) and fix misspelled function name --- program/steps/mail/get.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/steps/mail') 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); -- cgit v1.2.3