Details
-
Bug
-
Resolution: Fixed
-
High
-
5.3.5
-
None
Description
In Twig templates, the path( location ) function is not escaping special characters.
If legacy's urlalias_iri transformation mode is used, and content created with quotes, for example, it will break links generated through symfony / twig templates.
Steps to reproduce:
- in ezpublish_legacy/settings/override/site.ini.append.php, add
[URLTranslator] TransformationGroup=urlalias_iri
- Create a content with special chars, such as Test " Article <>
- Create or use template to view this content, for example:
<a id="test" href="{{ path( location ) }}"> {{ ez_render_field( content, 'title' ) }} </a>
- Verify the link is broken.