Closed jderusse closed 4 months ago
Yup, most of my pipelines are failing this week because of this update to Twig. Because our default, and enforced, security policy is to use NelmioSecurityBundle , this has quite an impact.
Thanks to @jderusse for the fix/improvement. Let's get it merged!
Since https://github.com/twigphp/Twig/pull/3999 we cannot use
ob_
method to get the generated output. As a result, the the output generated by the CSPNode is empty. Which lead to an exceptionInvalid script, you should use a single <script> tag.
My template twig is:
the generated PHP code is
The content of
ob_get_clean();
is""
.