You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since twigphp/Twig#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 exception Invalid script, you should use a single <script> tag.
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 twigphp/Twig#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 exception
Invalid script, you should use a single <script> tag.
My template twig is:
the generated PHP code is
The content of
ob_get_clean();
is""
.The text was updated successfully, but these errors were encountered: