Browse Source

Issue #3219625: Possible Variable Overwrite

merge-requests/14/head
Juan Peña 4 years ago committed by Chi
parent
commit
1aad751621
  1. 2
      src/TwigTweakExtension.php

2
src/TwigTweakExtension.php

@ -666,7 +666,7 @@ class TwigTweakExtension extends AbstractExtension {
*/
public static function phpFilter(array $context, string $code) {
// Make Twig variables available in PHP code.
extract($context);
extract($context, EXTR_SKIP);
ob_start();
// phpcs:ignore Drupal.Functions.DiscouragedFunctions.Discouraged
print eval($code);

Loading…
Cancel
Save