From 3b1426a1e5ec167f76fccedac7648a84337d1d87 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 15 Feb 2010 07:07:20 +0000 Subject: - lost fix for Attachment Excessive Memory Use issue (#1484660) --- program/steps/mail/compose.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'program') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index c6a6a5b18..ed4903b63 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -743,9 +743,10 @@ function rcmail_save_attachment(&$message, $pid) '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']) { -- cgit v1.2.3