mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-10 23:42:12 +00:00
Development
This commit is contained in:
@@ -56,7 +56,7 @@ class BaseCsrfVerifier implements IMiddleware
|
||||
|
||||
if ($request->getMethod() !== 'get' && !$this->skip($request)) {
|
||||
|
||||
$token = $request->getInput()->post->getValue(static::POST_KEY);
|
||||
$token = $request->getInput()->post->get(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