mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-18 17:42:54 +05:30
Fix bug: regex doesn't match all Base64 characters
This commit is contained in:
parent
2496653968
commit
b220368583
@ -61,7 +61,7 @@ class MAC extends AbstractTokenType implements TokenTypeInterface
|
|||||||
array_map(function ($param) use (&$params) {
|
array_map(function ($param) use (&$params) {
|
||||||
$param = trim($param);
|
$param = trim($param);
|
||||||
|
|
||||||
preg_match_all('/([a-zA-Z]*)="([\w=]*)"/', $param, $matches);
|
preg_match_all('/([a-zA-Z]*)="([\w=\/+]*)"/', $param, $matches);
|
||||||
|
|
||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
if (count($matches) !== 3) {
|
if (count($matches) !== 3) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user