Skip to content

Commit

Permalink
Fixed included triggering on other request-types than post
Browse files Browse the repository at this point in the history
  • Loading branch information
skipperbent committed Dec 9, 2023
1 parent 0f55480 commit 3534233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pecee/Http/Middleware/BaseCsrfVerifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ protected function skip(Request $request): bool
*/
public function handle(Request $request): void
{
if ($this->skip($request) === false && ($request->isPostBack() === true || $this->isIncluded($request) === true)) {
if ($this->skip($request) === false && ($request->isPostBack() === true || $request->isPostBack() === true && $this->isIncluded($request) === true)) {

$token = $request->getInputHandler()->value(
static::POST_KEY,
Expand Down

0 comments on commit 3534233

Please sign in to comment.