From 20cec9f837065ba8da21f8f94478d57b36ce3701 Mon Sep 17 00:00:00 2001 From: Kori <11611623+Koricz@users.noreply.github.com> Date: Sat, 7 Nov 2020 15:10:56 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20route=20callback,=20update=20for=20CVE-20?= =?UTF-8?q?20=E2=80=9315227?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Route.php b/src/Route.php index 8884a16..d5c2e7e 100644 --- a/src/Route.php +++ b/src/Route.php @@ -72,7 +72,7 @@ public function __construct($mask, array $defaults, Generator $generator, $flags }; $defaults['presenter'] = 'Nette:Micro'; - $defaults['callback'] = $this; + $defaults['callback'] = \Closure::fromCallable($this); parent::__construct($mask, $defaults, $flags); }