From 3b1426a1e5ec167f76fccedac7648a84337d1d87 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 15 Feb 2010 02:07:20 -0500 Subject: [PATCH] - lost fix for Attachment Excessive Memory Use issue (#1484660) --- program/steps/mail/compose.inc | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index c6a6a5b..ed4903b 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -743,9 +743,10 @@ 'mimetype' => $part->ctype_primary . '/' . $part->ctype_secondary, 'content_id' => $part->content_id, 'data' => $data, - 'path' => $path + 'path' => $path, + 'size' => $path ? filesize($path) : strlen($data), ); - + $attachment = rcmail::get_instance()->plugins->exec_hook('save_attachment', $attachment); if ($attachment['status']) { -- Gitblit v1.9.1