Fix bug: regex doesn't match all Base64 characters

This commit is contained in:
Michael Hogg 2015-08-28 14:01:22 +01:00
parent 2496653968
commit b220368583

View File

@ -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) {