Closed
Closed
Copy link
Description
Symfony version(s) affected: 5.0+
Description
The Slugger provided by String replaces &
by and
and @
by at
. This is only correct for English, but it looks like it's doing it unconditionally. See
symfony/src/Symfony/Component/String/Slugger/AsciiSlugger.php
Lines 100 to 101 in 168574d
Possible solution
Do this replacement only for English. If it's not possible to detect the locale, then it's preferable to not do the replacement.
Additional context
This was originally reported in this comment of the Symfony blog.