From 1aad75162103f86d84d58142149926e11c6cf576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Pe=C3=B1a?= Date: Fri, 18 Jun 2021 12:59:34 -0500 Subject: [PATCH] Issue #3219625: Possible Variable Overwrite --- src/TwigTweakExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TwigTweakExtension.php b/src/TwigTweakExtension.php index a3bc167..3667cb9 100644 --- a/src/TwigTweakExtension.php +++ b/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);