From d5ffb58726237d81f167c7460ce4eabb4b768c51 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Tue, 02 Mar 2010 02:59:54 -0500 Subject: [PATCH] Use case sensitive check when checking for default folders (#1486346) --- CHANGELOG | 1 + program/include/rcube_imap.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 8894fe5..a118bc0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG RoundCube Webmail =========================== +- Use case sensitive check when checking for default folders (#1486346) - Fix checking for new mail: now checks unseen count of inbox (#1485794) - Improve performance by avoiding unnecessary updates to the session table (#1486325) - Fix invalid <font> tags which cause HTML message rendering problems (#1486521) diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index ecde6f9..fdf524d 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -2156,9 +2156,9 @@ foreach ($this->default_folders as $folder) { $abs_name = $this->mod_mailbox($folder); - if (!in_array_nocase($abs_name, $a_folders)) + if (!in_array($abs_name, $a_folders)) $this->create_mailbox($folder, TRUE); - else if (!in_array_nocase($abs_name, $a_subscribed)) + else if (!in_array($abs_name, $a_subscribed)) $this->subscribe($folder); } } -- Gitblit v1.9.1