@@ -133,7 +133,7 @@ |
||
| 133 | 133 | $token = self::encode(hash_hmac('sha256', ClientIp::getIp($request), base64_decode($token), true)); |
| 134 | 134 | |
| 135 | 135 | return '<input type="hidden" name="'.$this->formIndex.'" value="'.htmlentities($index, ENT_QUOTES, 'UTF-8').'">' |
| 136 | - .'<input type="hidden" name="'.$this->formToken.'" value="'.htmlentities($token, ENT_QUOTES, 'UTF-8').'">'; |
|
| 136 | + .'<input type="hidden" name="'.$this->formToken.'" value="'.htmlentities($token, ENT_QUOTES, 'UTF-8').'">'; |
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /** |
@@ -6,9 +6,7 @@ |
||
| 6 | 6 | use Psr7Middlewares\Utils; |
| 7 | 7 | use Psr\Http\Message\ServerRequestInterface; |
| 8 | 8 | use Psr\Http\Message\ResponseInterface; |
| 9 | -use InvalidArgumentException; |
|
| 10 | 9 | use RuntimeException; |
| 11 | -use ArrayAccess; |
|
| 12 | 10 | |
| 13 | 11 | /** |
| 14 | 12 | * Middleware for CSRF protection |