Ticket #1485223 (closed Patches: fixed)

Opened 4 months ago

Last modified 3 months ago

Patch to fix non-ascii(Chinese) attachment filename display

Reported by: Bibby Owned by:
Priority: 5 Milestone: 0.2-beta
Component: MIME parsing Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

Compose mail in both Roundcubemail-0.1.1 & svn r1597, attachments filename begin with Chinese characters will be removed automaticly. This patch fixes this issue.

--- program/lib/Mail/mime.php	2008-07-16 17:16:01.000000000 +0800
+++ program/lib/Mail/mime.php	2008-07-16 17:18:12.000000000 +0800
@@ -337,7 +337,7 @@
             );
 	    return $err;
         }
-        $filename = basename($filename);
+        $filename = substr(basename('s_'.$filename), 2);
         if (PEAR::isError($filedata)) {
             return $filedata;
         }

Patch was wrote by karadog <at> gmail.

Change History

Changed 4 months ago by thomasb

  • component changed from Core functionality to PHP backend
  • severity changed from critical to normal

Needs to be reported to PEAR as well.

Changed 3 months ago by alec

  • status changed from new to closed
  • resolution set to fixed
  • component changed from PHP backend to MIME parsing
Note: See TracTickets for help on using tickets.