summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_imap.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-28 09:05:52 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-28 09:05:52 +0200
commit20ef295ba8ff0e9fce57ee24dd7f467a366a5c88 (patch)
tree185f95c3b2257f2f160a3a8e26c76f86582e6517 /program/lib/Roundcube/rcube_imap.php
parent8d7f42389cc62b5793857c0569928a2f4fd6f4d6 (diff)
Fix UTF7-IMAP encoding detection (fixes folders list sorting)
Diffstat (limited to 'program/lib/Roundcube/rcube_imap.php')
-rw-r--r--program/lib/Roundcube/rcube_imap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_imap.php b/program/lib/Roundcube/rcube_imap.php
index e4b77a0a3..8bdc92bee 100644
--- a/program/lib/Roundcube/rcube_imap.php
+++ b/program/lib/Roundcube/rcube_imap.php
@@ -4151,7 +4151,7 @@ class rcube_imap extends rcube_storage
if ($folder[0] != '.') {
// for better performance skip encoding conversion
// if the string does not look like UTF7-IMAP
- $folders[$folder] = strpos($folder, '+') === false ? $folder : rcube_charset::convert($folder, 'UTF7-IMAP');
+ $folders[$folder] = strpos($folder, '&') === false ? $folder : rcube_charset::convert($folder, 'UTF7-IMAP');
}
else {
unset($folders[$idx]);