-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Connections
-
Labels:None
Replace `QueryUnescape` with `PathUnescape` for not unescape the plus sign in username and password
According to https://docs.mongodb.com/manual/reference/connection-string/#components , the plus sign does not need to use percent encoding, but with `QueryUnescape`, it will be convert to a space.
As in https://golang.org/pkg/net/url/#PathUnescape said:
PathUnescape is identical to QueryUnescape except that it does not unescape '+' to ' ' (space).