diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-12-27 10:25:36 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-12-27 10:25:36 +0100 |
commit | 2b80d5dbf2ff301b0627b3a0e3c9a61e86658fd4 (patch) | |
tree | 80c0ccec293768407727a0ceb47b3791fa864c40 /program/lib/Roundcube | |
parent | ee3e27dc09e7fc896d863f28d8d9b39b209cfebc (diff) |
Workaround UW-IMAP bug where hierarchy separator is added to the shared folder name (#1488879)
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r-- | program/lib/Roundcube/rcube_imap_generic.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index 59a444da7..8d84bf736 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -1311,6 +1311,11 @@ class rcube_imap_generic if ($cmd == 'LIST' || $cmd == 'LSUB') { list($opts, $delim, $mailbox) = $this->tokenizeResponse($line, 3); + // Remove redundant separator at the end of folder name, UW-IMAP bug? (#1488879) + if ($delim) { + $mailbox = rtrim($mailbox, $delim); + } + // Add to result array if (!$lstatus) { $folders[] = $mailbox; |