It is possible to trick a Validator
configured with a regular expression using the $
metacharacters, with an input ending with \n
.
Symfony now uses the D
regex modifier to match the entire input.
The patch for this issue is available here for branch 5.4.
We would like to thank Offscript for reporting the issue and Alexandre Daubois for providing the fix.