Skip to content

Commit

Permalink
Merge pull request #5 from chrisguitarguy/fix-is-disabled
Browse files Browse the repository at this point in the history
Use `$procedure` in `isDisabled` Method Check
  • Loading branch information
dneustadt authored Mar 31, 2022
2 parents 6fe0ee4 + e702392 commit adf351a
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 adf351a

Please sign in to comment.