]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Replace custom URL-encoding method with quote_plus
authoreXenon <xavier.nunn@protonmail.com>
Mon, 4 Dec 2023 17:39:25 +0000 (12:39 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 6 Dec 2023 18:12:30 +0000 (13:12 -0500)
commitb80e17c3f3e21059ba1a425d75bf3e0f9384d4d2
treeaedde0191acafde2dc2926edbb8cecbe7119c2d5
parentd8cab0694e6dc9f7b7fd02a4b5a8ae6bbb2e896e
Replace custom URL-encoding method with quote_plus

Fixed URL-encoding of the username and password components of
:class:`.engine.URL` objects when converting them to string using the
:meth:`_engine.URL.render_as_string` method, by using Python standard
library ``urllib.parse.quote_plus``, rather than the legacy home-grown
routine from many years ago. Pull request courtesy of Xavier NUNN.

Fixes: #10662
Closes: #10726
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/10726
Pull-request-sha: 82219041b8f73d8c932cc40e87c002b3b853e02e

Change-Id: I90b7a9f4dfdb719082b4b178ad4e009a8531a18e
doc/build/changelog/unreleased_21/10662.rst [new file with mode: 0644]
lib/sqlalchemy/engine/url.py
test/engine/test_parseconnect.py