From 19a61851ae7bc9492504c4884db8a53afa5d06c5 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Wed, 29 Jul 2015 14:39:07 -0400 Subject: [PATCH] Fix so imap folder attribute comparisons are case-insensitive (#1490466) + make in_array_nocase() much faster for ASCII strings --- program/include/rcmail.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/include/rcmail.php b/program/include/rcmail.php index 0bcedeb..be395be 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -1584,7 +1584,7 @@ // skip folders in which it isn't possible to create subfolders if (!empty($opts['skip_noinferiors'])) { $attrs = $this->storage->folder_attributes($folder['id']); - if ($attrs && in_array('\\Noinferiors', $attrs)) { + if ($attrs && in_array_nocase('\\Noinferiors', $attrs)) { continue; } } -- Gitblit v1.9.1