diff --git a/src/Controller/Admin/BlogController.php b/src/Controller/Admin/BlogController.php index 020a3a2f6..5fb00c7e1 100644 --- a/src/Controller/Admin/BlogController.php +++ b/src/Controller/Admin/BlogController.php @@ -162,7 +162,7 @@ public function edit(Request $request, Post $post, EntityManagerInterface $entit public function delete(Request $request, Post $post, EntityManagerInterface $entityManager): Response { /** @var string|null $token */ - $token = $request->request->get('token'); + $token = $request->getPayload()->get('token'); if (!$this->isCsrfTokenValid('delete', $token)) { return $this->redirectToRoute('admin_post_index', [], Response::HTTP_SEE_OTHER);