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

Review URL percent escaping sets, from whatwg. #3371

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

tomchristie
Copy link
Member

Review and update which characters should be percent escaped when parsing & normalising URLs.
Based on the URL living standard... https://url.spec.whatwg.org/

Prompted by #3360

@tomchristie tomchristie added the user-experience Ensuring that users have a good experience using the library label Oct 28, 2024
@tomchristie tomchristie merged commit d293374 into master Oct 28, 2024
5 checks passed
@tomchristie tomchristie deleted the review-component-percent-escaping branch October 28, 2024 15:06
@tomchristie tomchristie mentioned this pull request Nov 15, 2024
@tomchristie tomchristie mentioned this pull request Nov 28, 2024
assert new.username == "[email protected]"
assert new.password == "abc123@ %"
assert new.userinfo == b"tom%40example.org:abc123%40%20%25"
assert new.userinfo == b"tom%40example.org:abc123%40%20%"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks weird. I could be wrong. But should the userinfo field contain partial escapes? The trialing % sign change here seem odd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-experience Ensuring that users have a good experience using the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants