-
Notifications
You must be signed in to change notification settings - Fork 582
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
Mojo::URL accepts invalid schemes #1540
Comments
Since the regex used in |
This issue has been automatically marked as stale because it has not had recent activity. It may be closed if no further activity occurs. Thank you for your contributions. |
I plan to look at this in the next month, tentatively with a new |
This issue has been automatically marked as stale because it has not had recent activity. It may be closed if no further activity occurs. This is not a judgment on the merits of the issue, but an indication that more information may be needed to determine the appropriate course of action, if any. Thank you for your contributions. |
I hope to look at this soon, by adding a method ( |
This issue has been automatically marked as stale because it has not had recent activity. It may be closed if no further activity occurs. This is not a judgment on the merits of the issue, but an indication that more information may be needed to determine the appropriate course of action, if any. Thank you for your contributions. |
ok bot, I haven't forgotten |
There's some good info (and test cases) here: |
Steps to reproduce the behavior
Mojo::URL->new("bar,baz:foo")
Expected behavior
An error in
parse
, or construction of an empty object, because "bar,baz" is not a valid scheme.https://tools.ietf.org/html/rfc3986#section-3.1 provides the grammar:
scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
.Actual behavior
The above code constructs a uri object with scheme "bar,baz" and path "foo".
If this is accepted as a valid issue I can provide a pull request.
The text was updated successfully, but these errors were encountered: