You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…gitalLife)
This PR was merged into the 4.1-dev branch.
Discussion
----------
[Validator] support protocolless urls validation
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #24287
| License | MIT
As specified in issue #24287 URL's starting with no protocol but with just `//` are valid URL's and should be accepted by the validator. This pull request fixes the regex used to validate URL's.
Commits
-------
d845406 [Validator] support protocolless urls validation
The
Symfony\Component\Validator\Constraints\UrlValidator
regex fails when not passing the protocol.http://test.com/index.js
=> passeshttps://test.com/index.js
=> passes//test.dev/index.js
=> fails//test.dev/index.js
works perfectly in the browser but doesn't pass the validatorThe text was updated successfully, but these errors were encountered: