Thomas Rabaix 11 年之前
父节点
当前提交
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 ?");
         }
     }