summaryrefslogtreecommitdiff
path: root/program/lib/imap.inc
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2006-09-13 04:49:18 +0000
committersvncommit <devs@roundcube.net>2006-09-13 04:49:18 +0000
commit40ed9be1ee7ca4c4950573a18f55aeaaa15ecb3a (patch)
treeae923d9820382661c69db7b251fa7f676059b2ed /program/lib/imap.inc
parent7139e33e6c7dcd206e166416e7b5742bc3849cb9 (diff)
Fixed bug #1484019 and #1484020
Diffstat (limited to 'program/lib/imap.inc')
-rw-r--r--program/lib/imap.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index b2e1d43c0..caa1d2721 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -1887,7 +1887,7 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, $mode){
$remaining = $bytes - $received;
$line = iil_ReadLine($fp, 1024);
$len = strlen($line);
- if ($len > $remaining) substr($line, 0, $remaining);
+ if ($len > $remaining) $line = substr($line, 0, $remaining);
$received += strlen($line);
if ($mode==1) $result .= chop($line)."\n";
else if ($mode==2){ echo chop($line)."\n"; flush(); }