- lost fix for Attachment Excessive Memory Use issue (#1484660)

release-0.6
alecpl 15 years ago
parent fb915a744e
commit 3b1426a1e5

@ -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']) {

Loading…
Cancel
Save