Use generic escape() function to quote UIDs

This commit is contained in:
Thomas Bruederli 2012-11-08 14:41:37 +01:00
parent dfb7fae983
commit f91e6ed831

View file

@ -717,7 +717,8 @@ class kolab_storage_cache
{ {
if (!isset($this->uid2msg[$uid])) { if (!isset($this->uid2msg[$uid])) {
// use IMAP SEARCH to get the right message // use IMAP SEARCH to get the right message
$index = $this->imap->search_once($this->folder->name, ($deleted ? '' : 'UNDELETED ') . 'HEADER SUBJECT "' . $uid. '"'); $index = $this->imap->search_once($this->folder->name, ($deleted ? '' : 'UNDELETED ') .
'HEADER SUBJECT ' . rcube_imap_generic::escape($uid));
$results = $index->get(); $results = $index->get();
$this->uid2msg[$uid] = $results[0]; $this->uid2msg[$uid] = $results[0];
} }