The Wayback Machine - https://web.archive.org/web/20250620133419/https://github.com/symfony/symfony/issues/41599
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

UrlValidator does not allow for multiple colons #41599

Copy link
Copy link
Closed
@chx

Description

@chx
Issue body actions

Symfony version(s) affected: all as far as I can tell

Description

https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.1

userinfo = *( unreserved / pct-encoded / sub-delims / ":" )

The : character is specifically mentioned as something that can occur any number of times.

The change in symfony/validator@adab212 didn't change the handling of this. It seems this regexp attempts to implement https://datatracker.ietf.org/doc/html/rfc2617#section-2 but that one had

  userid      = *<TEXT excluding ":">
  password    = *TEXT

where the userid was mentioned to exclude the colon but password got no such mentions and so the it could contain colons even in the older RFC.

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.