Thomas Rabaix преди 12 години
родител
ревизия
2a7f3eac50
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 ?");
         }
     }