Skip to content

[Validator] : fix url validation when punycode is on tld but not on domain #60124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

joelwurtz
Copy link
Contributor

@joelwurtz joelwurtz commented Apr 2, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues
License MIT

When there is punycode in the tld current validator will force all others parts of domain to use punycode, however this should not be required i updated the regex to match only punycode in tld (as the other regex allow all valid characters needed for punycode)

@fabpot
Copy link
Member

fabpot commented Apr 4, 2025

Thank you @joelwurtz.

@fabpot fabpot merged commit d70371d into symfony:6.4 Apr 4, 2025
12 of 21 checks passed
@joelwurtz joelwurtz deleted the fix/puny-code-not-everywhere branch April 4, 2025 08:45
This was referenced May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants