Ticket #1485223 (closed Patches: fixed)
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
Note: See
TracTickets for help on using
tickets.
