mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-13 17:23:27 +03:00
Csrf bugfixes
This commit is contained in:
@@ -54,7 +54,7 @@ class BaseCsrfVerifier implements IMiddleware {
|
||||
|
||||
if($request->getMethod() !== 'get' && !$this->skip($request)) {
|
||||
|
||||
$token = $request->getInput()->post->findFirst(static::POST_KEY);
|
||||
$token = $request->getInput()->post->getValue(static::POST_KEY);
|
||||
|
||||
// If the token is not posted, check headers for valid x-csrf-token
|
||||
if($token === null) {
|
||||
|
||||
Reference in New Issue
Block a user