Skip to content

Commit 79488d9

Browse files
authored
PYTHON-3678 Username/password needs to be escaped with quote_plus to account for '/' (#1193)
1 parent 2cc8fb1 commit 79488d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/examples/authentication.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Percent-Escaping Username and Password
1111
--------------------------------------
1212

1313
Username and password must be percent-escaped with
14-
:py:func:`urllib.parse.quote`, to be used in a MongoDB URI. For example::
14+
:py:func:`urllib.parse.quote_plus`, to be used in a MongoDB URI. For example::
1515

1616
>>> from pymongo import MongoClient
1717
>>> import urllib.parse

0 commit comments

Comments
 (0)