Closed
Description
Symfony version(s) affected: at least since 3.2.14 up to current master
Description
The preg validating URLs doesn't validate URLs containing []
characters generally used for denoting array query parameters.
How to reproduce
Try to validate url (generated by FB, altered and shortened) https://www.facebook.com/genericfbpage/?__tn__=kC-R&fref=nf&__xts__[0]=68.ARDlO2VS
- validation fails
Possible Solution
Alter UrlValidator PATTERN regex constant to match brackets.