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

Fix url validator to accept underscore in sub-domain name #10467

Copy link
Copy link
Closed
@adicosoi

Description

@adicosoi
Issue body actions

Url validator accept as valid an url like the following:
http://testsub+domanin.domanin.com:8080/test

but does not accept
http://test_sub_domanin.domanin.com:8080/test

The problem seems to be here:
symfony / src / Symfony / Component / Validator / Constraints / UrlValidator.php
Line 28: ([\pL\pN\pS-]+.)+[\pL]+ # a domain name

The fix can be as simple as replacing \pS (mathematical symbol) with \pP (punctuation character) or even better i think \pPc (Connector Punctuation character)

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.