Skip to content

Commit

Permalink
Use $procedure in isDisabled Method Check
Browse files Browse the repository at this point in the history
Seems like this one got missed and it was always checking the `requried`
key of methods.
  • Loading branch information
chrisguitarguy committed Mar 30, 2022
1 parent 6fe0ee4 commit e702392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/CsrfRequestEvaluator.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function isDisabled(string $procedure, Request $request, ?Response $respo
|| empty($csrf[$procedure])
|| (!empty($csrf['exclude']) && is_array($csrf['exclude']) && in_array($attributes->get('_route'), $csrf['exclude'], true))
|| (!empty($csrf['condition']) && $this->evaluateCondition($csrf['condition'], $request, $response) === false)
|| (is_array($csrf[$procedure]) && !in_array($request->getMethod(), $csrf[self::REQUIRE], true))
|| (is_array($csrf[$procedure]) && !in_array($request->getMethod(), $csrf[$procedure], true))
;
}

Expand Down

0 comments on commit e702392

Please sign in to comment.