summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-03-06 13:38:33 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-03-06 13:38:33 +0000
commit69be3a2a97cf856dbbbbffc9dccc047c0a701842 (patch)
treebbb2c5edcbd87ada029babf6c526f458f432bc1f /roundcubemail/program
parentb94f57d907d308746ad1c6bd1d4b95e419029108 (diff)
- Have DSN parser pass database name through url decode (#1488035)
git-svn-id: https://svn.roundcube.net/trunk@5968 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/lib/MDB2.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/MDB2.php b/roundcubemail/program/lib/MDB2.php
index 4c0660218..61486a60c 100644
--- a/roundcubemail/program/lib/MDB2.php
+++ b/roundcubemail/program/lib/MDB2.php
@@ -888,10 +888,10 @@ class MDB2
if ($dsn) {
// /database
if (($pos = strpos($dsn, '?')) === false) {
- $parsed['database'] = $dsn;
+ $parsed['database'] = rawurldecode($dsn);
// /database?param1=value1&param2=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);