]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.6] bpo-42967: only use '&' as a query string separator (GH-24297) (GH-24532)
authorSenthil Kumaran <senthil@uthcode.com>
Mon, 15 Feb 2021 19:16:43 +0000 (11:16 -0800)
committerGitHub <noreply@github.com>
Mon, 15 Feb 2021 19:16:43 +0000 (14:16 -0500)
commit5c17dfc5d70ce88be99bc5769b91ce79d7a90d61
tree57c06e80ae27e24f0657249d640eb25e19f9f5ac
parent34df10a9a16b38d54421eeeaf73ec89828563be7
[3.6] bpo-42967: only use '&' as a query string separator (GH-24297)  (GH-24532)

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>
Doc/library/cgi.rst
Doc/library/urllib.parse.rst
Doc/whatsnew/3.6.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]