-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Form URL validation - strange behavior #1318
Comments
In fact, |
@db: Indeed. Should I implement it into both server and client validation? |
It is question. Usually you want http://cs.wikipedia.org/wiki/FQDN with http(s) protocol, but there are cases, when any hostname/ipv4/ipv6 is correct (form for setting database, local pathes, ...). Maybe we should have Form::URL for http FQDN urls and Form::HOSTNAME… |
Where would be Form::HOSTNAME used? |
@TomasVotruba as @dg stated mostly in forms with settings or configuration details. :+1 for separate FQDN and HOSTNAME What about IP(v4)? and IPv6? These could be useful too (PORT can be simulated by number with range). Also it would be good opportunity for improving IPv4 regex |
@mishak87 I would like to know more ideas about this topic, just to be sure, what do you expect or need.
Anything else? |
FQDN for domains only (no protocol or port) |
HOSTNAME shouldn't contain the "http://" part though? Hostname should be just "example.com" or "example"? |
Hello,
if I use Form::URL rule, validator return true though string in input isn't valid url in my opinion.
Example for input "aaaaaa" validator return true (IMHO "aaaaaa" isn't valid url)and form is sended with url "http://aaaaaa"
This is bug or some feature?
The text was updated successfully, but these errors were encountered: