summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-02-15 07:07:20 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-02-15 07:07:20 +0000
commitc2bad302fbc99f3e93d34985c22e288065dfc8b8 (patch)
treeeaa959a6ebb90a05cc4885c5b6842ff0db4402d9 /roundcubemail/program/steps/mail
parent7c4206800b73f86aacf0eab3beb98408a29c086d (diff)
- lost fix for Attachment Excessive Memory Use issue (#1484660)
git-svn-id: https://svn.roundcube.net/trunk@3270 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail')
-rw-r--r--roundcubemail/program/steps/mail/compose.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc
index c6a6a5b18..ed4903b63 100644
--- a/roundcubemail/program/steps/mail/compose.inc
+++ b/roundcubemail/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']) {