Skip to content
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

Don't test semicolon separators in urlencoded data #33

Merged
merged 1 commit into from
Feb 5, 2022

Conversation

cjwatson
Copy link
Collaborator

@cjwatson cjwatson commented Apr 9, 2021

Python no longer accepts ";" as a separator for urllib.parse.parse_qs
by default (https://bugs.python.org/issue42967), causing the multipart
test suite to fail with recent Python versions (3.6.13, 3.7.10, 3.8.8,
3.9.2, 3.10.0a6).

While we could detect the availability of the separator argument and
pass it, since application/x-www-form-urlencoded data in POST and
PUT requests is probably not an issue for web cache poisoning, the
current HTML spec seems clear that only "&" should be considered, so
follow along with Python's API change.

Python no longer accepts ";" as a separator for `urllib.parse.parse_qs`
by default (https://bugs.python.org/issue42967), causing the multipart
test suite to fail with recent Python versions (3.6.13, 3.7.10, 3.8.8,
3.9.2, 3.10.0a6).

While we could detect the availability of the `separator` argument and
pass it, since `application/x-www-form-urlencoded` data in `POST` and
`PUT` requests is probably not an issue for web cache poisoning, the
current HTML spec seems clear that only "&" should be considered, so
follow along with Python's API change.
@cjwatson
Copy link
Collaborator Author

cjwatson commented Jun 4, 2021

@defnull, does this look OK to you? It's blocking a couple of other PRs.

@cjwatson
Copy link
Collaborator Author

cjwatson commented Feb 5, 2022

I'll just go ahead and merge this.

@cjwatson cjwatson merged commit c8ccecf into defnull:master Feb 5, 2022
@cjwatson cjwatson mentioned this pull request Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant