summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-08-26 07:48:09 +0000
committeralecpl <alec@alec.pl>2008-08-26 07:48:09 +0000
commitd5c539942e3cb4ad623a3f3f0344fc45af371981 (patch)
tree0a29031dc06fdcd797aa74b2058a1d530d1373c1 /program/lib
parent9e8e5fa634ace418e6b34280133685485b97a9c0 (diff)
-removed flush() calls in iil_C_HandlePartBody() to prevent from memory leak (#1485187)
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/imap.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index 84d1b36b9..c10c90101 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -62,6 +62,7 @@
- removed hardcoded data size in iil_ReadLine()
- added iil_PutLine() wrapper for fputs()
- code cleanup and identation fixes
+ - removed flush() calls in iil_C_HandlePartBody() to prevent from memory leak (#1485187)
********************************************************/
@@ -2402,9 +2403,9 @@ function iil_C_HandlePartBody(&$conn, $mailbox, $id, $part, $mode) {
if ($mode == 1) {
$result .= rtrim($line, "\t\r\n\0\x0B") . "\n";
} else if ($mode == 2) {
- echo rtrim($line, "\t\r\n\0\x0B") . "\n"; flush();
+ echo rtrim($line, "\t\r\n\0\x0B") . "\n";
} else if ($mode == 3) {
- echo base64_decode($line); flush();
+ echo base64_decode($line);
}
}
}