summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-12-16 16:33:31 +0000
committerthomascube <thomas@roundcube.net>2008-12-16 16:33:31 +0000
commitf1cc7fc09cc15d01b2594d4a35f9a9ad6b7b5e29 (patch)
treefe8127196e08ec040463d5e7aff76f831262a1a4
parent1a762278f3aeada1b5567e034ab75aa721e42b71 (diff)
Only abbreviate file name for IE browsers (#1485063)
-rw-r--r--CHANGELOG4
-rw-r--r--program/steps/mail/get.inc3
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 3cef60c7c..7228b440d 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,10 @@
CHANGELOG RoundCube Webmail
---------------------------
+2008/12/16 (thomasb)
+----------
+- Only abbreviate file name for IE browsers (#1485063)
+
2008/12/11 (alec)
----------
- Performance: allow setting imap rootdir and delimiter before connect (#1485172)
diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc
index 2d51ffc46..9d696746a 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -89,8 +89,7 @@ else if ($pid = get_input_value('_part', RCUBE_INPUT_GET)) {
}
$filename = $part->filename ? $part->filename : ($MESSAGE->subject ? $MESSAGE->subject : 'roundcube') . '.'.$ctype_secondary;
- $filename = abbreviate_string($part->filename, 55);
- $filename = $browser->ie ? rawurlencode($filename) : addcslashes($filename, '"');
+ $filename = $browser->ie ? rawurlencode(abbreviate_string($filename, 55)) : addcslashes($filename, '"');
$disposition = !empty($_GET['_download']) ? 'attachment' : 'inline';
header("Content-Disposition: $disposition; filename=\"$filename\"");