Fix UTF7-IMAP encoding detection (fixes folders list sorting)

pull/193/head^2
Aleksander Machniak 11 years ago
parent 8d7f42389c
commit 20ef295ba8

@ -4151,7 +4151,7 @@ class rcube_imap extends rcube_storage
if ($folder[0] != '.') { if ($folder[0] != '.') {
// for better performance skip encoding conversion // for better performance skip encoding conversion
// if the string does not look like UTF7-IMAP // 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 { else {
unset($folders[$idx]); unset($folders[$idx]);

Loading…
Cancel
Save