From a256f18159aa58c182487cc12462ce2fdb4a0c3e Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 16 Jun 2021 22:19:26 +0200 Subject: [PATCH] Update src/Module/OAuth/Token.php Co-authored-by: Hypolite Petovan --- src/Module/OAuth/Token.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/OAuth/Token.php b/src/Module/OAuth/Token.php index 1a2fff525..f104e9672 100644 --- a/src/Module/OAuth/Token.php +++ b/src/Module/OAuth/Token.php @@ -52,7 +52,7 @@ class Token extends BaseApi $authorization = $_SERVER['REDIRECT_REMOTE_USER'] ?? ''; } - if (empty($request['client_id']) && !empty($authorization) && (substr($authorization, 0, 6) == 'Basic ')) { + if (empty($request['client_id']) && substr($authorization, 0, 6) == 'Basic ') { $datapair = explode(':', base64_decode(trim(substr($authorization, 6)))); if (count($datapair) == 2) { $request['client_id'] = $datapair[0];