summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-12-18 17:57:49 +0000
committerthomascube <thomas@roundcube.net>2008-12-18 17:57:49 +0000
commit07717db7530ac180c88cedc4aeca3de85cde75dd (patch)
treec04f9a9a35f533b8d4f4b9fa7586bdebc764f7fe /program/steps/mail
parent1553b3c7019285a4b333531dcce2013f79c963c1 (diff)
Only abbreviate attachment file names in MSIE < 7
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 9d696746a..b77621b0f 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -89,7 +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 = $browser->ie ? rawurlencode(abbreviate_string($filename, 55)) : addcslashes($filename, '"');
+ $filename = ($browser->ie && $browser->ver < 7) ? rawurlencode(abbreviate_string($filename, 55)) : addcslashes($filename, '"');
$disposition = !empty($_GET['_download']) ? 'attachment' : 'inline';
header("Content-Disposition: $disposition; filename=\"$filename\"");