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

urlapi: prevent setting invalid schemes with *url_set() #10911

Closed
wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Apr 8, 2023

A typical mistake would be to try to set "https://" - including the separator - this is now rejected as that would then lead to url_get(... URL...) would get an invalid URL extracted.

Extended test 1560 to verify.

A typical mistake would be to try to set "https://" - including the
separator - this is now rejected as that would then lead to
url_get(... URL...) would get an invalid URL extracted.

Extended test 1560 to verify.
@bagder bagder added the URL label Apr 8, 2023
@github-actions github-actions bot added the tests label Apr 8, 2023
@bagder bagder closed this in 826e801 Apr 9, 2023
@bagder bagder deleted the bagder/url-set-bad-scheme branch April 9, 2023 21:24
bch pushed a commit to bch/curl that referenced this pull request Jul 19, 2023
A typical mistake would be to try to set "https://" - including the
separator - this is now rejected as that would then lead to
url_get(... URL...) would get an invalid URL extracted.

Extended test 1560 to verify.

Closes curl#10911
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

1 participant