From b2203685835472ef157de51dc1236e4e44cdefc0 Mon Sep 17 00:00:00 2001 From: Michael Hogg Date: Fri, 28 Aug 2015 14:01:22 +0100 Subject: [PATCH] Fix bug: regex doesn't match all Base64 characters --- src/TokenType/MAC.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TokenType/MAC.php b/src/TokenType/MAC.php index 1eb3b930..e4b97a66 100644 --- a/src/TokenType/MAC.php +++ b/src/TokenType/MAC.php @@ -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) {