mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-24 04:22:07 +05:30
Merge pull request #371 from michaelhogg/fix-bug-base64-regex
Fix bug: regex doesn't match all Base64 characters
This commit is contained in:
commit
ccc845b195
@ -61,7 +61,7 @@ class MAC extends AbstractTokenType implements TokenTypeInterface
|
||||
array_map(function ($param) use (&$params) {
|
||||
$param = trim($param);
|
||||
|
||||
preg_match_all('/([a-zA-Z]*)="([\w=]*)"/', $param, $matches);
|
||||
preg_match_all('/([a-zA-Z]*)="([\w=\/+]*)"/', $param, $matches);
|
||||
|
||||
// @codeCoverageIgnoreStart
|
||||
if (count($matches) !== 3) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user