alecpl
2009-10-02 1480e2f37419ea54a850bbcfb42218fa7e6c50b4
- fix corrupted attachments on forward (#1486193)


1 files modified
4 ■■■ changed files
program/lib/imap.inc 4 ●●● patch | view | raw | blame | history
program/lib/imap.inc
@@ -2306,7 +2306,6 @@
                }
                }
            }
            // read in anything up until last line
        if (!$end)
            do {
@@ -2314,13 +2313,12 @@
            } 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;
            }