From 6ab9e8a6c8474063ea70c727bb3fe107f1a864dc Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Tue, 17 Apr 2012 19:17:16 -0400 Subject: [PATCH] Respect force flag when counting messages --- program/lib/MDB2.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/program/lib/MDB2.php b/program/lib/MDB2.php index 4c06602..61486a6 100644 --- a/program/lib/MDB2.php +++ b/program/lib/MDB2.php @@ -888,10 +888,10 @@ if ($dsn) { // /database if (($pos = strpos($dsn, '?')) === false) { - $parsed['database'] = $dsn; + $parsed['database'] = rawurldecode($dsn); // /database?param1=value1¶m2=value2 } else { - $parsed['database'] = substr($dsn, 0, $pos); + $parsed['database'] = rawurldecode(substr($dsn, 0, $pos)); $dsn = substr($dsn, $pos + 1); if (strpos($dsn, '&') !== false) { $opts = explode('&', $dsn); -- Gitblit v1.9.1