]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42967: only use '&' as a query string separator (#24297)
authorAdam Goldschmidt <adamgold7@gmail.com>
Sun, 14 Feb 2021 22:41:57 +0000 (00:41 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Feb 2021 22:41:57 +0000 (14:41 -0800)
commitfcbe0cb04d35189401c0c880ebfb4311e952d776
tree48ca1701d13be00517881423fcfd99b8a9ae9445
parent1b57426e3a7842b4e6f9fc13ffb657c78e5443d4
bpo-42967: only use '&' as a query string separator (#24297)

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: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Éric Araujo <merwok@netwok.org>
12 files changed:
Doc/library/cgi.rst
Doc/library/urllib.parse.rst
Doc/whatsnew/3.10.rst
Doc/whatsnew/3.6.rst
Doc/whatsnew/3.7.rst
Doc/whatsnew/3.8.rst
Doc/whatsnew/3.9.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]