Thomas Rabaix 11 lat temu
rodzic
commit
2a7f3eac50
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Controller/CRUDController.php

+ 1 - 1
Controller/CRUDController.php

@@ -843,7 +843,7 @@ class CRUDController extends Controller
             return;
         }
 
-        if (!$this->container->get('form.csrf_provider')->isCsrfTokenValid($intention, $this->get('request')->request->get('_sonata_csrf_toke', false))) {
+        if (!$this->container->get('form.csrf_provider')->isCsrfTokenValid($intention, $this->get('request')->request->get('_sonata_csrf_token', false))) {
             throw new HttpException(400, "The csrf token is not valid, CSRF attack ?");
         }
     }