diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-10-02 07:22:33 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-10-02 07:22:33 +0000 |
| commit | 00829fc116b5101e906f0c88d84748af909a807e (patch) | |
| tree | 03b49299a30e0ba57a5c3b7973dd8c52778505e9 /roundcubemail/program | |
| parent | cc19227fbe2b4a8520409ba0358a3e31581b9d21 (diff) | |
- fix corrupted attachments on forward (#1486193)
git-svn-id: https://svn.roundcube.net/trunk@3006 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/lib/imap.inc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc index f632ca992..90938f499 100644 --- a/roundcubemail/program/lib/imap.inc +++ b/roundcubemail/program/lib/imap.inc @@ -2270,7 +2270,7 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $is_uid=false, $part='', $e } else $prev = ''; - + if ($file) fwrite($file, base64_decode($line)); else if ($print) @@ -2306,7 +2306,6 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $is_uid=false, $part='', $e } } } - // read in anything up until last line if (!$end) do { @@ -2314,18 +2313,17 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $is_uid=false, $part='', $e } while (!iil_StartsWith($line, $key, true)); if ($result) { - $result = rtrim($result, "\t\r\n\0\x0B"); if ($file) { fwrite($file, $result); } else if ($print) { echo $result; } else - return $result; // substr($result, 0, strlen($result)-1); + return $result; return true; } } - + return false; } |
