From 6f2f2d0ffdf21ac0dce85b5dae8809a49b14a7a2 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Thu, 07 Feb 2008 02:50:37 -0500 Subject: [PATCH] Truncate attachment filenames to 55 characters (#1484757) and fix misspelled function name --- program/steps/mail/get.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc index dad49d3..6aca131 100644 --- a/program/steps/mail/get.inc +++ b/program/steps/mail/get.inc @@ -108,7 +108,7 @@ { 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); -- Gitblit v1.9.1