[3.6] bpo-42967: only use '&' as a query string separator (GH-24297) #24532
[3.6] bpo-42967: only use '&' as a query string separator (GH-24297) #24532ned-deily merged 3 commits intopython:3.6from orsenthil:backport-fcbe0cb-3.6
Conversation
… 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>. (cherry picked from commit fcbe0cb) Co-authored-by: Adam Goldschmidt <adamgold7@gmail.com>
|
The idle test case failing seems more like an unrelated flake to me. |
|
Other than the docs issues mentioned in #24528 , this LGTM! |
Lib/cgi.py
Outdated
| ctype, pdict = parse_header(environ['CONTENT_TYPE']) | ||
| if ctype == 'multipart/form-data': | ||
| return parse_multipart(fp, pdict) | ||
| return parse_multipart(fp, pdict, separator=separator) |
There was a problem hiding this comment.
I believe we should change the parse_multipart signature here
There was a problem hiding this comment.
Thank you!. Yes, I had noticed in my local, but then lost it. :( - And unfortunately, the existing tests didn't cover to catch too.
|
We are adding a |
It is being called from |
|
Hi Ned, the patch against 3.6 is complete. You could merge this when you get a chance and cut the release. Thank you. |
…4297) (pythonGH-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> Rebased for Python 2.7 by Michał Górny
[3.6] bpo-42967: only use '&' as a query string separator (GH-24297)
Backport of fcbe0cb to 3.6
https://bugs.python.org/issue42967
https://bugs.python.org/issue42967