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

Allow ssh URLs to pass URLValidator #1717

Closed
wants to merge 1 commit into from

Conversation

saschpe
Copy link
Contributor

@saschpe saschpe commented Oct 7, 2013

The generic definition of Uniform Resource Locator doesn't include any
restriction on the scheme, so Django's URLValidator should at least
accept the most common ones. This includes ssh://.

Refs #21242 -- Allow more IANA schemes in URLValidator

@timgraham
Copy link
Member

If you're not aware, pull requests without a corresponding Trac ticket are ignored per our contributing guidelines. I see ftp was added in ticket #15229. I'm inclined to say that most users probably expect http(s) and that if you need other schemes you should write a custom validator, but if you open a ticket we can get some other opinions.

Assuming this had an accepted ticket, we should document what schemes are supported.

The generic definition of Uniform Resource Locator doesn't include any
restriction on the scheme, so Django's URLValidator should at least
accept the most common ones. This includes ssh://.

Refs #21242 -- Allow more IANA schemes in URLValidator
@saschpe
Copy link
Contributor Author

saschpe commented Oct 8, 2013

Oh, I'm sorry. So I filed a (slightly broader) ticket and added "refs #xxx -- yyy" to the commit message.

@timgraham
Copy link
Member

Please see the approach suggested in the ticket and send a new PR if you can make those adjustments, thanks!

@timgraham timgraham closed this Oct 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants