[Svn] r2182 - trunk/roundcubemail/program/steps/mail

trac at roundcube.net trac at roundcube.net
Fri Dec 19 08:20:50 CET 2008


Author: alec
Date: 2008-12-19 01:20:50 -0600 (Fri, 19 Dec 2008)
New Revision: 2182

Modified:
   trunk/roundcubemail/program/steps/mail/get.inc
Log:
#1485638: use rawurlencode for all IE versions


Modified: trunk/roundcubemail/program/steps/mail/get.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/get.inc	2008-12-18 19:12:37 UTC (rev 2181)
+++ trunk/roundcubemail/program/steps/mail/get.inc	2008-12-19 07:20:50 UTC (rev 2182)
@@ -89,7 +89,14 @@
       }
       
       $filename = $part->filename ? $part->filename : ($MESSAGE->subject ? $MESSAGE->subject : 'roundcube') . '.'.$ctype_secondary;
-      $filename = ($browser->ie && $browser->ver < 7) ? rawurlencode(abbreviate_string($filename, 55)) : addcslashes($filename, '"');
+      
+      if ($browser->ie && $browser->ver < 7)
+        $filename = rawurlencode(abbreviate_string($filename, 55));
+      else if ($browser->ie)
+        $filename = rawurlencode($filename);
+      else
+        $filename = 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