Skip to content
Permalink
Browse files Browse the repository at this point in the history
Merge pull request from GHSA-j3r6-33hf-m8wh
Do not use useless is_safe_callback option, auto escape the extension's result
  • Loading branch information
PierreRambaud committed Apr 15, 2020
2 parents ea85210 + 17cd8e8 commit b6aea15
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -75,8 +75,7 @@ public function getFunctions()
return [
new TwigFunction(
'pathWithBackUrl',
[$this, 'getPathWithBackUrl'],
['is_safe_callback' => [$this->routingExtension, 'isUrlGenerationSafe']]
[$this, 'getPathWithBackUrl']
),
];
}
Expand Down

0 comments on commit b6aea15

Please sign in to comment.