From 1480e2f37419ea54a850bbcfb42218fa7e6c50b4 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Fri, 02 Oct 2009 03:22:33 -0400 Subject: [PATCH] - fix corrupted attachments on forward (#1486193) --- program/lib/imap.inc | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/program/lib/imap.inc b/program/lib/imap.inc index f632ca9..90938f4 100644 --- a/program/lib/imap.inc +++ b/program/lib/imap.inc @@ -2270,7 +2270,7 @@ } else $prev = ''; - + if ($file) fwrite($file, base64_decode($line)); else if ($print) @@ -2306,7 +2306,6 @@ } } } - // read in anything up until last line if (!$end) do { @@ -2314,18 +2313,17 @@ } 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; } -- Gitblit v1.9.1