summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-02-15 07:07:20 +0000
committeralecpl <alec@alec.pl>2010-02-15 07:07:20 +0000
commit3b1426a1e5ec167f76fccedac7648a84337d1d87 (patch)
treef31468060088785283c3a7c0d12691522367158a /program/steps
parentfb915a744ef058f6e49e7080a61c2f6ac5bd2369 (diff)
- lost fix for Attachment Excessive Memory Use issue (#1484660)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/compose.inc5
1 files changed, 3 insertions, 2 deletions
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']) {