symfony/symfony — pull request #11776 by raulfraile (2014-08-26 18:32:15+00:00)
Title: Validate url

| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #11702
| License | MIT

This PR fixes the regular expression to accept valid URLs. It does not allow to start a domain name with "-" or "."