summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2012-11-08 13:41:37 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2012-11-08 13:41:37 (GMT)
commitf91e6ed831da8cb1ac9c4d121ece42147b5ea87b (patch)
treecc0bfe7fa6b306944b8882629736435c00ed6ee4
parentdfb7fae98367bf59540aff43979539cfc1ff27d1 (diff)
downloadroundcubemail-plugins-kolab-f91e6ed831da8cb1ac9c4d121ece42147b5ea87b.tar.gz
Use generic escape() function to quote UIDs
-rw-r--r--plugins/libkolab/lib/kolab_storage_cache.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/libkolab/lib/kolab_storage_cache.php b/plugins/libkolab/lib/kolab_storage_cache.php
index cdb373f..6d50bf9 100644
--- a/plugins/libkolab/lib/kolab_storage_cache.php
+++ b/plugins/libkolab/lib/kolab_storage_cache.php
@@ -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];
}