[Svn] r2160 - in trunk/roundcubemail: . program/steps/mail

trac at roundcube.net trac at roundcube.net
Tue Dec 16 17:33:31 CET 2008


Author: thomasb
Date: 2008-12-16 10:33:31 -0600 (Tue, 16 Dec 2008)
New Revision: 2160

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/steps/mail/get.inc
Log:
Only abbreviate file name for IE browsers (#1485063)

Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2008-12-16 16:24:56 UTC (rev 2159)
+++ trunk/roundcubemail/CHANGELOG	2008-12-16 16:33:31 UTC (rev 2160)
@@ -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)

Modified: trunk/roundcubemail/program/steps/mail/get.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/get.inc	2008-12-16 16:24:56 UTC (rev 2159)
+++ trunk/roundcubemail/program/steps/mail/get.inc	2008-12-16 16:33:31 UTC (rev 2160)
@@ -89,8 +89,7 @@
       }
       
       $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\"");

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list