summaryrefslogtreecommitdiff
path: root/roundcubemail/program/lib/imap.inc
diff options
context:
space:
mode:
authorestadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-09-13 04:49:18 +0000
committerestadtherr <estadtherr@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-09-13 04:49:18 +0000
commit874a6b05dca2df7baccc29996df396b13fa08d0e (patch)
tree6a930733f8863e5e02e02138b1c47b4eea074e11 /roundcubemail/program/lib/imap.inc
parentdff883ed90546cb3a8b9397edf73887b9b2117fe (diff)
Fixed bug #1484019 and #1484020
git-svn-id: https://svn.roundcube.net/trunk@342 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib/imap.inc')
-rw-r--r--roundcubemail/program/lib/imap.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc
index b2e1d43c0..caa1d2721 100644
--- a/roundcubemail/program/lib/imap.inc
+++ b/roundcubemail/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(); }