-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] After update to 5.3.10 before valid urls are now marked as invalid #43868
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
Comments
Confirmed. @DfKimera, can you have a look please? |
They don't have a domain part and any reserved word (localhost), so they are invalid, am I wrong? |
They don't need to. As mentioned by @MiroCillik, hostnames without a domain part are common in Docker setups. |
So we have form with company url and now user can enter http://a, useless validator, thanks for this "feature". |
Before the change, the user could enter |
This PR was merged into the 4.4 branch. Discussion ---------- [Validator] Fix validation for single level domains | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #43868, #44252 | License | MIT | Doc PR | - Not sure if there are any other test cases that could be added, but this seems to fix the problem. Commits ------- 653a21d [Validator] Fix validation for single level domains
Symfony version(s) affected
5.3.10
Description
After update to symfony/validator 5.3.10 #43388 the Url Validator marks urls like
http://internal-api
as invalid. This url was fine in version 5.3.8 and the PR seems to be fixing a different issue, so it seems like unwanted consequence. The hyphen seems to be the problem. Urls like this one are commonly used for docker-compose services.How to reproduce
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: