File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,11 +114,11 @@ public function validate()
114
114
115
115
$ mac = hash_hmac (
116
116
$ this ->getAlgorithm (),
117
- implode ('\n ' , array_filter ($ values )),
117
+ implode ('\\ n ' , array_filter ($ values )) . '\\ n ' ,
118
118
$ this ->getJwt ()->getClaim ('mac_key ' )
119
119
);
120
120
121
- if ($ mac === $ this ->mac ) {
121
+ if (base64_encode ( $ mac) === $ this ->mac ) {
122
122
return $ this ;
123
123
}
124
124
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class ServerRequest extends \GuzzleHttp\Psr7\ServerRequest
15
15
* ServerRequest constructor.
16
16
* @param Request $request
17
17
*/
18
- public function __construct (Request & $ request )
18
+ public function __construct (Request $ request )
19
19
{
20
20
parent ::__construct (
21
21
$ request ->method ,
You can’t perform that action at this time.
0 commit comments