-
Notifications
You must be signed in to change notification settings - Fork 9
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
':' is being considered a valid relative URI #74
Comments
For example, this alternative Python URI validator also rejects |
This other alternative online validator is also rejecting it: https://0mg.github.io/tools/uri/ |
@Silvanoc: Thanks for your interest! Regarding ":" used as an URI, this is - for better or worse - interpreted as a simple path, and therefore as a valid relative URI:
According to RFC 3986, ":" belongs to
and should therefore better be encoded if used in path components. However, |
What I read in the RFC 3986 (end of the page) is "the conflicting data MUST be percent-encoded before the URI is formed" (formatting is mine). So I would say that
IMHO having a Just to give you some context information. I'm not using |
Describe the bug
The string
":"
(simply a colon) is being considered a valid relative URI.But, if I'm reading the specification right, it isn't a valid relative URI.
Expected result
uritools.isrelpath(":")
returnsFalse
Actual result
uritools.isrelpath(":")
returnsTrue
Reproduction steps
The text was updated successfully, but these errors were encountered: