Skip to content

Commit

Permalink
Allow validate CSRF token from query string
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemix authored and core23 committed Sep 21, 2019
1 parent de79926 commit 61826c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/CRUDController.php
Expand Up @@ -1419,7 +1419,7 @@ protected function getAclRoles()
protected function validateCsrfToken($intention)
{
$request = $this->getRequest();
$token = $request->request->get('_sonata_csrf_token');
$token = $request->get('_sonata_csrf_token');

if ($this->container->has('security.csrf.token_manager')) {
$valid = $this->container->get('security.csrf.token_manager')->isTokenValid(new CsrfToken($intention, $token));
Expand Down

0 comments on commit 61826c0

Please sign in to comment.