]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/test/Twig/Tests/Fixtures/functions/include/sandbox.test
788a2ab0bddf3e1b56ff14205dfde3c3193aae7c
[github/wallabag/wallabag.git] / vendor / twig / twig / test / Twig / Tests / Fixtures / functions / include / sandbox.test
1 --TEST--
2 "include" tag sandboxed
3 --TEMPLATE--
4 {{ include("foo.twig", sandboxed = true) }}
5 --TEMPLATE(foo.twig)--
6 {{ foo|e }}
7 --DATA--
8 return array()
9 --EXCEPTION--
10 Twig_Sandbox_SecurityError: Filter "e" is not allowed in "index.twig" at line 2.