Skip to content

Commit

Permalink
Fix route callback, update for CVE-2020–15227
Browse files Browse the repository at this point in the history
  • Loading branch information
Koricz authored and kori committed Nov 8, 2020
1 parent c6fafec commit 20cec9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 20cec9f

Please sign in to comment.