From a12bbbaf41a200e98e437c2082b9dcc68c5a8f46 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 14 Apr 2014 11:28:31 -0400
Subject: [PATCH] Fix invalid page title for some folders (1489804)

---
 CHANGELOG                  |    1 +
 program/include/rcmail.php |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index a32aeab..3e46f83 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -16,6 +16,7 @@
 - Fix messages index cache update under some conditions (e.g. proxy) (#1489756)
 - Fix lack of translation of special folders in some configurations (#1489799)
 - Fix XSS issue in plain text spellchecker (#1489806)
+- Fix invalid page title for some folders (1489804)
 
 RELEASE 1.0.0
 -------------
diff --git a/program/include/rcmail.php b/program/include/rcmail.php
index 1fd0776..8d7101e 100644
--- a/program/include/rcmail.php
+++ b/program/include/rcmail.php
@@ -1622,7 +1622,7 @@
             $count     = count($path);
 
             if ($count > 1) {
-                for ($i = 0; $i < $count; $i++) {
+                for ($i = 1; $i < $count; $i++) {
                     $folder = implode($delimiter, array_slice($path, 0, -$i));
                     if ($folder_class = $this->folder_classname($folder)) {
                         $name = implode($delimiter, array_slice($path, $count - $i));

--
Gitblit v1.9.1