Skip to content

Commit 20cec9f

Browse files
Koriczkori
authored andcommitted
Fix route callback, update for CVE-2020–15227
1 parent c6fafec commit 20cec9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __construct($mask, array $defaults, Generator $generator, $flags
7272
};
7373

7474
$defaults['presenter'] = 'Nette:Micro';
75-
$defaults['callback'] = $this;
75+
$defaults['callback'] = \Closure::fromCallable($this);
7676

7777
parent::__construct($mask, $defaults, $flags);
7878
}

0 commit comments

Comments
 (0)