-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Add validation rule based on Spoofchecker::isSuspicious() #49268
Labels
Help wanted
Issues and PRs which are looking for volunteers to complete them.
Comments
nicolas-grekas
added
the
Help wanted
Issues and PRs which are looking for volunteers to complete them.
label
Feb 6, 2023
nicolas-grekas
changed the title
Validation rule based on Spoofchecker::isSuspicious()?
Add validation rule based on Spoofchecker::isSuspicious()
Feb 6, 2023
I did a little digging and PHP’s
|
Thanks for digging. This could be worth a bug report on php-src, WDYT? |
Yes, I think both php-src and php-doc-en need a little dusting on that matter! |
(please don't forget to open an issue on php-src) |
nicolas-grekas
added a commit
that referenced
this issue
Feb 21, 2023
…to validate a string is not suspicious (MatTheCat) This PR was merged into the 6.3 branch. Discussion ---------- [Validator] Add a `NoSuspiciousCharacters` constraint to validate a string is not suspicious | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #49268 | License | MIT | Doc PR | symfony/symfony-docs#17897 Leverage `Spoofchecker::isSuspicious` in a new constraint. Commits ------- 12f901f [Validator] Add a `NoSuspiciousCharacters` constraint to validate a string is not a spoof attempt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://php.net/spoofchecker.issuspicious
We could then add the annotation automatically in maker-bundle when the intl extension is available.
The text was updated successfully, but these errors were encountered: