Skip to content

Commit cee66ee

Browse files
committed
Merge pull request #748 from timemachine3030/hotfix/urlencode-connection-string
Urlencode mongo password
2 parents 81ae6b9 + 59dbab6 commit cee66ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Connection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ protected function getDsn(array $config)
182182
$auth .= $username;
183183
}
184184
if (! empty($password)) {
185-
$auth .= ':'.$password;
185+
$auth .= ':' . urlencode($password);
186186
}
187187
if ($auth) {
188188
$auth .= '@';

0 commit comments

Comments
 (0)