Files
Fabien Potencier 795720230c Fix test
2024-09-09 11:10:45 +02:00

14 lines
271 B
Plaintext

--TEST--
"include" tag sandboxed
--TEMPLATE--
{{ include("foo.twig", sandboxed = true) }}
--TEMPLATE(foo.twig)--
{{ 'foo'|e }}
{{ 'foo'|e }}
--DATA--
return []
--EXCEPTION--
Twig\Sandbox\SecurityNotAllowedFilterError: Filter "e" is not allowed in "foo.twig" at line 4.