From d1d7b508490d3a19ad6dbc8eeb04f86eb6777ca5 Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Sat, 22 Apr 2023 13:43:27 -0600 Subject: [PATCH] PYTHON-3678 Username/password needs to be escaped with quote_plus to account for '/' --- doc/examples/authentication.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/authentication.rst b/doc/examples/authentication.rst index a46f95c789..5bd3282146 100644 --- a/doc/examples/authentication.rst +++ b/doc/examples/authentication.rst @@ -11,7 +11,7 @@ Percent-Escaping Username and Password -------------------------------------- Username and password must be percent-escaped with -:py:func:`urllib.parse.quote`, to be used in a MongoDB URI. For example:: +:py:func:`urllib.parse.quote_plus`, to be used in a MongoDB URI. For example:: >>> from pymongo import MongoClient >>> import urllib.parse