Skip to content

Commit

Permalink
Fix accessing virtual mailboxes that contain mailboxes that included …
Browse files Browse the repository at this point in the history
…internal null characters - i.e. remote mailboxes
  • Loading branch information
slusarz committed Jun 11, 2014
1 parent 991962c commit 531dd6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imp/lib/Mailbox/List/Virtual.php
Expand Up @@ -155,11 +155,11 @@ public function resolveBuid($buid)
return null;
}

list($mbox, $uid) = explode(self::IDX_SEP, $this->_buids[$buid]);
$pos = strrpos($this->_buids[$buid], self::IDX_SEP);

return array(
'm' => IMP_Mailbox::get($mbox),
'u' => intval($uid)
'm' => IMP_Mailbox::get(substr($this->_buids[$buid], 0, $pos)),
'u' => intval(substr($this->_buids[$buid], $pos + 1))
);
}

Expand Down

0 comments on commit 531dd6e

Please sign in to comment.