diff options
author | Andy Schwerin <schwerin@10gen.com> | 2014-01-07 15:40:37 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2014-01-07 16:00:44 -0500 |
commit | 97176b9b73f8a5f2903865f80fcdc87586fa30af (patch) | |
tree | 8859610799585f985ca2abe84b4e8b3b8ddf216d /src/mongo/shell/db.js | |
parent | e6997d6ab5e5e048b1f99c764cd5e0c17d30808d (diff) | |
download | mongo-97176b9b73f8a5f2903865f80fcdc87586fa30af.tar.gz |
SERVER-11626 Have db.auth shell helper copy its argument, rather than mutate it.
Diffstat (limited to 'src/mongo/shell/db.js')
-rw-r--r-- | src/mongo/shell/db.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js index 097e2398fe2..241937a52a2 100644 --- a/src/mongo/shell/db.js +++ b/src/mongo/shell/db.js @@ -1201,7 +1201,7 @@ DB.prototype._authOrThrow = function () { else if (arguments.length == 1) { if (typeof(arguments[0]) != "object") throw Error("Single-argument form of auth expects a parameter object"); - params = arguments[0]; + params = Object.extend({}, arguments[0]); } else { throw Error( |