nelmio / NelmioSecurityBundle

Adds extra security-related features in your Symfony application
https://symfony.com/bundles/NelmioSecurityBundle/
MIT License
651 stars 85 forks source link

Fix compatibility with twig 3.9 and yielding #344

Closed jderusse closed 4 months ago

jderusse commented 6 months ago

This PR makes CSPNode compatible with twig 3.9.

Since https://github.com/twigphp/Twig/pull/3999 we cannot use ob_ method to get the generated output (See https://github.com/twigphp/Twig/issues/4034)

This PR fixes the issue by using the CaptureNode introduced in https://github.com/twigphp/Twig/pull/3954

Fix #343

franmomu commented 4 months ago

thanks @jderusse!