From 5965dbc5a0003afd0a972c66e536e55ced285ccb Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Wed, 28 May 2025 22:13:11 +0200 Subject: [PATCH] fix: Fix extracting Basic token --- src/controllers/Metrics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/Metrics.php b/src/controllers/Metrics.php index ed39b76..502ec79 100644 --- a/src/controllers/Metrics.php +++ b/src/controllers/Metrics.php @@ -63,7 +63,7 @@ private function getAuthToken(Request $request): ?string { $authorization_header = $request->headers->getString('Authorization', ''); - $result = preg_match('/^Basic (?P\w+)$/', $authorization_header, $matches); + $result = preg_match('/^Basic (?P[\w=]+)$/', $authorization_header, $matches); if ($result === false || !isset($matches['token'])) { return null; }