-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
String: Parse fragment from URL #92237
Conversation
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 looks good, but I wonder if we should parse the fragment before the scheme.
As far as I understand RFC 3986 section 3.5 and Appendix A specify that the URL fragment can contain both :
and /
characters.
This means that the following URI is valid:
google.com/#goto=http://redirect_url/
But our current implementation will take the scheme as google.com/#goto=http://
.
7b8ca2d
to
6516ca6
Compare
Also added some tests for |
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.
LGTM, nice work! 🚀
Thanks! |
Fixes #92229