Skip to content

Commit 3e3ab5f

Browse files
Merge remote-tracking branch 'origin/master'
2 parents fa62bf0 + 600e239 commit 3e3ab5f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Pecee/SimpleRouter/Router.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,11 @@ public function start(): ?string
346346
]);
347347

348348
/* Verify csrf token for request */
349-
$this->csrfVerifier->handle($this->getRequest());
349+
try {
350+
$this->csrfVerifier->handle($this->getRequest());
351+
} catch(\Exception $e) {
352+
$this->handleException($e);
353+
}
350354
}
351355

352356
$output = $this->routeRequest();
@@ -1010,4 +1014,4 @@ public function addExceptionHandler(IExceptionHandler $handler): self
10101014
return $this;
10111015
}
10121016

1013-
}
1017+
}

0 commit comments

Comments
 (0)