Use generic escape() function to quote UIDs
This commit is contained in:
parent
dfb7fae983
commit
f91e6ed831
1 changed files with 2 additions and 1 deletions
|
@ -717,7 +717,8 @@ class kolab_storage_cache
|
|||
{
|
||||
if (!isset($this->uid2msg[$uid])) {
|
||||
// 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();
|
||||
$this->uid2msg[$uid] = $results[0];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue