-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Open
Description
Symfony version(s) affected
7.3.4
Description
https://symfony.com/doc/current/reference/constraints/NoSuspiciousCharacters.html
[...] such as invisible characters such as zero-width spaces [...]
I have debugged through the validator and recreated what the validator does in 3v4l
https://3v4l.org/9dMTh#v8.4.14
as you can see, the "default" validator" basically ignore the zero-width space (https://zerowidthspace.me/ -> \u{200b}), that should probably not be the case
we are on PHP v8.4.14 & ICU v72.1
How to reproduce
https://3v4l.org/9dMTh#v8.4.14
class UpdateName
{
#[Assert\NoSuspiciousCharacters]
public string $firstname;
}framework:
enabled_locales:
- de
- fr
- itPossible Solution
No response
Additional Context
No response