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

":" in relative path within relative reference #91

Open
kenballus opened this issue Feb 8, 2023 · 1 comment
Open

":" in relative path within relative reference #91

kenballus opened this issue Feb 8, 2023 · 1 comment

Comments

@kenballus
Copy link
Contributor

'.://' should not parse. It is not an absolute URI because '.' is not a valid scheme, and it is not a relative URI because a path-noscheme cannot begin with a ':'.

The relevant grammar rules from the RFC:

   scheme        = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
   relative-ref  = relative-part [ "?" query ] [ "#" fragment ]
   relative-part = "//" authority path-abempty
                 / path-absolute
                 / path-noscheme
                 / path-empty
   path-noscheme = segment-nz-nc *( "/" segment )
   segment-nz-nc = 1*( unreserved / pct-encoded / sub-delims / "@" )
                 ; non-zero-length segment without any colon ":"
@sigmavirus24
Copy link
Collaborator

Happy to accept a PR to fix this

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

No branches or pull requests

2 participants