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 and UTF8-NFD #29953

Copy link
Copy link
Closed
@ThauEx

Description

@ThauEx
Issue body actions

Symfony version(s) affected: 3.4+ (have not tested older versions)

Description
It looks like the UrlValidator has issues with UTF-8-NFD encoded urls/filesnames. This encoding is used on macs and and when validating urls with umlauts in it's filesname, which have ben generated on macs, the validator will fail.
In my example it validates
https://example.com/köchin.html
fine, but not
https://example.com/köchin.html
With UTF-8-NFD umlauts are saved as basicly two characters and not as a single one, like in the normal UTF-8.

How to reproduce
Here is an example with the symfony url validator regex:
https://regex101.com/r/0OkiOJ/2

Leave only the first url and it will match, delete the first and leave the second will not match.

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.