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

[5.2] Validation Fails for Urls without a Path and with a Query String #13680

Closed
tsmith1985 opened this issue May 24, 2016 · 0 comments
Closed

Comments

@tsmith1985
Copy link

The updated validateUrl() method in the Validator class fails for URLs without a path and with query string in 5.2. The documentation for 5.2 also incorrectly states that The field under validation must be a valid URL according to PHP's filter_var function.. It appears that the filter_var based method was replaced in 5.2 with a new version.

Repro

http://google.com passes validation
http://google.com/maps?q=usa passes validation
http://google.com/?q=usa passes validation
http://google.com?q=usa fails validation

taylorotwell pushed a commit that referenced this issue May 25, 2016
symfony-splitter pushed a commit to illuminate/validation that referenced this issue May 25, 2016
taylorotwell pushed a commit to illuminate/validation that referenced this issue Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant