-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
[3.7] bpo-42967: only use '&' as a query string separator (GH-24297) #24531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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> (cherry picked from commit fcbe0cb)
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>. (cherry picked from commit fcbe0cb) Co-authored-by: Adam Goldschmidt <adamgold7@gmail.com>
Doc/library/urllib.parse.rst
Outdated
@@ -200,8 +202,12 @@ or on combining URL components into a URL string. | |||
.. versionchanged:: 3.7.2 | |||
Added *max_num_fields* parameter. | |||
|
|||
.. versionchanged:: 3.10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be 3.7.10
@orsenthil Should I be the one to change the versions in all PRs? Asking cause I'm not familiar with the process. |
@AdamGold - Nope. My comments were for me as placeholders, I made it so that I can I get back to these. Having said that, once ready, I will ping you to review these backports to see if everything is alright and we could merge them. |
Hi Ned, the patch against 3.7 is complete. You could merge this when you get a chance and cut the release. Thank you. |
[3.7] bpo-42967: only use '&' as a query string separator (GH-24297)
Backport of fcbe0cb to 3.7
https://bugs.python.org/issue42967
https://bugs.python.org/issue42967