mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 03:16:34 +00:00
ee6965ed00a7118ebe89e0c32d16e11ae7c8c1f1
The Twig_NodeVisitor_Escaper collects a list of blocks for all templates that it visits. If you define the same block (i.e. with the same name) in txt and html templates this results sometimes in the html block not being escapes. This is illustrated in the added test. To fix it, I propose to reset the list of the blocks for each module. Alternatively we need to make clear that blocks should not share names between text and html templates.
Twig, the flexible, fast, and secure template language for PHP ============================================================== Twig is a template language for PHP, released under the new BSD license (code and documentation). Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment. More Information ---------------- Read the `documentation`_ for more information. .. _documentation: http://twig.sensiolabs.org/documentation
Description
Languages
PHP
99.9%