]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-42967: only use '&' as a query string separator (GH-24297) (GH-24531)
authorSenthil Kumaran <senthil@uthcode.com>
Mon, 15 Feb 2021 18:34:14 +0000 (10:34 -0800)
committerGitHub <noreply@github.com>
Mon, 15 Feb 2021 18:34:14 +0000 (13:34 -0500)
commitd0d4d30882fe3ab9b1badbecf5d15d94326fd13e
tree5f9cf7c531d89da3dab9d3315bde1142a5cde9bc
parentd9b8f138b7df3b455b54653ca59f491b4840d6fa
[3.7] bpo-42967: only use '&' as a query string separator (GH-24297)  (GH-24531)

bpo-42967: [security] Address a web cache-poisoning issue reported in
urllib.parse.parse_qsl().

urllib.parse will only us "&" as query string separator by default
instead of both ";" and "&" as allowed in earlier versions. An optional
argument seperator with default value "&" is added to specify the
separator.

Co-authored-by: Éric Araujo <merwok@netwok.org>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Adam Goldschmidt <adamgold7@gmail.com>
(cherry picked from commit fcbe0cb04d35189401c0c880ebfb4311e952d776)
Doc/library/cgi.rst
Doc/library/urllib.parse.rst
Doc/whatsnew/3.6.rst
Doc/whatsnew/3.7.rst
Lib/cgi.py
Lib/test/test_cgi.py
Lib/test/test_urlparse.py
Lib/urllib/parse.py
Misc/NEWS.d/next/Security/2021-02-14-15-59-16.bpo-42967.YApqDS.rst [new file with mode: 0644]