Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Validator] UrlValidator doesn't accept brackets in query string #30603

Copy link
Copy link
Closed
@finwe

Description

@finwe
Issue body actions

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.