Skip to content

Commit

Permalink
Merge pull request #536 from mrkurt/master
Browse files Browse the repository at this point in the history
Allow URL encoded passwords with db.connect()
  • Loading branch information
christkv committed Mar 12, 2012
2 parents 29e4ff1 + c8ff84e commit e57b585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongodb/db.js
Expand Up @@ -1671,7 +1671,7 @@ Db.connect = function(url, options, callback) {

db.open(function(err, db){
if(err == null && authPart){
db.authenticate(auth[0], auth[1], function(err, success){
db.authenticate(decodeURIComponent(auth[0]), decodeURIComponent(auth[1]), function(err, success){
if(success){
callback(null, db);
} else {
Expand Down

0 comments on commit e57b585

Please sign in to comment.