summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pear/DB.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/pear/DB.php b/pear/DB.php
index 8cf40dd9c3..1b37ccce7d 100644
--- a/pear/DB.php
+++ b/pear/DB.php
@@ -413,7 +413,7 @@ class DB
$dsn = $arr[1];
}
- if (preg_match("|^([^:]+):([^@]+)@?(.*)$|", $dsn, $arr)) {
+ if (preg_match("|^([^:]+):([^@]*)@?(.*)$|", $dsn, $arr)) {
$parsed["username"] = urldecode($arr[1]);
$parsed["password"] = urldecode($arr[2]);
$dsn = $arr[3];