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 parse hostname from netloc manually; rely on urlsplit's result #348

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

timmc
Copy link
Contributor

@timmc timmc commented Aug 29, 2022

This manual parsing of netloc can be fooled by use of a userinfo component.
SplitResult already has a hostname property.

New test test_host_whitelist_sneaky_userinfo fails on master.

This manual parsing of netloc can be fooled by use of a userinfo component.
SplitResult already has a hostname property.

New test `test_host_whitelist_sneaky_userinfo` fails on master.
@scoder
Copy link
Member

scoder commented Dec 2, 2022

Closing+reopening to get a clean CI run.

@scoder scoder closed this Dec 2, 2022
@scoder scoder reopened this Dec 2, 2022
@scoder scoder merged commit 089d436 into lxml:master Jun 16, 2023
@scoder
Copy link
Member

scoder commented Jun 16, 2023

Thanks

scoder pushed a commit that referenced this pull request Jul 4, 2023
…H-348)

This manual parsing of netloc can be fooled by use of a userinfo component.
SplitResult already has a hostname property.

New test `test_host_whitelist_sneaky_userinfo` fails on master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants