summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-10-28 07:20:00 -0400
committerAleksander Machniak <alec@alec.pl>2014-10-28 07:20:00 -0400
commitd93019125cca783e8acfaa68467024375321e55f (patch)
tree5cf22dd8aae3e6d1ed6ab341072ed30035c1b3b1 /program/lib
parenta140e6d213d492a94a332150214850945361bf74 (diff)
Allways call rcube_imap::set_folder() before rcube_imap::get_message_part()
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/Roundcube/rcube_message.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_message.php b/program/lib/Roundcube/rcube_message.php
index d089713e5..3644d6b8e 100644
--- a/program/lib/Roundcube/rcube_message.php
+++ b/program/lib/Roundcube/rcube_message.php
@@ -222,6 +222,7 @@ class rcube_message
// part body not fetched yet... save in memory if it's small enough
if ($part->body === null && is_numeric($mime_id) && $part->size < self::BODY_MAX_SIZE) {
+ $this->storage->set_folder($this->folder);
// Warning: body here should be always unformatted
$part->body = $this->storage->get_message_part($this->uid, $mime_id, $part,
null, null, true, 0, false);