summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/host_connection_string_validation.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/noPassthroughWithMongod/host_connection_string_validation.js b/jstests/noPassthroughWithMongod/host_connection_string_validation.js
index a252ef39230..f7bac51db88 100644
--- a/jstests/noPassthroughWithMongod/host_connection_string_validation.js
+++ b/jstests/noPassthroughWithMongod/host_connection_string_validation.js
@@ -89,8 +89,8 @@
print("Testing " + (isGood ? "good" : "bad") + " connection string " + i + "...");
print(" * testing " + connectionString);
testHost(connectionString, isGood);
- print(" * testing mongodb://" + connectionString);
- testHost("mongodb://" + connectionString, isGood);
+ print(" * testing mongodb://" + encodeURIComponent(connectionString));
+ testHost("mongodb://" + encodeURIComponent(connectionString), isGood);
}
var i;