summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-04-15 13:23:52 +0000
committeralecpl <alec@alec.pl>2008-04-15 13:23:52 +0000
commit76a89bf04d7c3dd6b6261ca55a24fd57a30d50cb (patch)
treec50e4ddeb7ec84c364f1af73f6254997597c3f5e /program
parent47fab0a48ee8fbce32c8d50eb26fb8f9779a5446 (diff)
#1333167
#1484916
Diffstat (limited to 'program')
-rw-r--r--program/lib/imap.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 96353dd2f..5c15353f5 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -2360,9 +2360,9 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, $mode) {
}
$received += strlen($line);
if ($mode == 1) {
- $result .= chop($line) . "\n";
+ $result .= rtrim($line, "\t\r\n\0\x0B") . "\n";
} else if ($mode == 2) {
- echo chop($line) . "\n"; flush();
+ echo rtrim($line, "\t\r\n\0\x0B") . "\n"; flush();
} else if ($mode == 3) {
echo base64_decode($line); flush();
}
@@ -2374,7 +2374,7 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, $mode) {
} while (!iil_StartsWith($line, $key));
if ($result) {
- $result = chop($result);
+ $result = rtrim($result, "\t\r\n\0\x0B");
return $result; // substr($result, 0, strlen($result)-1);
}
return false;