From: Michael M Slusarz Date: Tue, 21 Jul 2009 22:27:31 +0000 (-0600) Subject: Fix encoding of IDX_SEP character. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9cc250d126621d9aab5d13b73e02687f96ecc661;p=horde.git Fix encoding of IDX_SEP character. --- diff --git a/imp/lib/IMP.php b/imp/lib/IMP.php index a1af6a14b..3010f9237 100644 --- a/imp/lib/IMP.php +++ b/imp/lib/IMP.php @@ -31,8 +31,8 @@ class IMP const MAILBOX_START_FIRSTPAGE = 3; const MAILBOX_START_LASTPAGE = 4; - /* IMP internaltring used to separate indexes. */ - const IDX_SEP = "\0"; + /* IMP internal string used to separate indexes. */ + const IDX_SEP = '\0'; /* Are we currently in "print" mode? */ static public $printMode = false; diff --git a/imp/mailbox.php b/imp/mailbox.php index fbb2765af..0d8b0313e 100644 --- a/imp/mailbox.php +++ b/imp/mailbox.php @@ -735,7 +735,7 @@ while (list(,$ob) = each($mbox_info['overview'])) { 'preview' => '', 'status' => '', 'size' => htmlspecialchars($imp_ui->getSize($ob['size'])), - 'uid' => htmlspecialchars($ob['uid'] . IMP::IDX_SEP . $ob['mailbox']), + 'uid' => $ob['uid'] . IMP::IDX_SEP . htmlspecialchars($ob['mailbox']), ); /* Since this value will be used for an ID element, it cannot contain