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

isURL - host optional for file:// #563

Closed
avaer opened this issue Aug 11, 2016 · 0 comments
Closed

isURL - host optional for file:// #563

avaer opened this issue Aug 11, 2016 · 0 comments
Labels

Comments

@avaer
Copy link

avaer commented Aug 11, 2016

According to https://tools.ietf.org/html/rfc1738 for file:// urls:

As a special case, can be the string "localhost" or the empty
string; this is interpreted as `the machine from which the URL is
being interpreted'.

So file:///foo.txt could be a legal url, but I don't see an option for require_host: false that would allow users to correctly implement this validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants