diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-10-22 14:29:44 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-10-22 14:29:44 +0200 |
commit | 48ba4414b33c8982f8232b06f06d68f3213aa986 (patch) | |
tree | c36c555e1e2cca6cfe1fdd12018da05b648798b9 /plugins/vcard_attachments | |
parent | e2251db1d5b536f61fe7db57b96a9601465bd139 (diff) |
Fix download of attachments that are part of TNEF message (#1490091)
Rcube_message_part::body content should never be modified by code out of the rcube_message.
Added convenient rcube_message::get_part_body() method, making rcube_message::get_part_content() deprecated.
Diffstat (limited to 'plugins/vcard_attachments')
-rw-r--r-- | plugins/vcard_attachments/vcard_attachments.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/vcard_attachments/vcard_attachments.php b/plugins/vcard_attachments/vcard_attachments.php index cf7e22d3a..74718be6f 100644 --- a/plugins/vcard_attachments/vcard_attachments.php +++ b/plugins/vcard_attachments/vcard_attachments.php @@ -65,7 +65,7 @@ class vcard_attachments extends rcube_plugin $attach_script = false; foreach ($this->vcard_parts as $part) { - $vcards = rcube_vcard::import($this->message->get_part_content($part, null, true)); + $vcards = rcube_vcard::import($this->message->get_part_body($part, true)); // successfully parsed vcards? if (empty($vcards)) { |