]> git.mxchange.org Git - friendica.git/commitdiff
Standards
authorMichael <heluecht@pirati.ca>
Tue, 8 Jun 2021 07:35:36 +0000 (07:35 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 8 Jun 2021 07:35:36 +0000 (07:35 +0000)
src/Security/OAuth.php

index dda282420bf909fa1ab4ac67520f9b7f3d0980be..005628094756d5cb018a7023ac6e645ef3bfba93 100644 (file)
@@ -120,9 +120,7 @@ class OAuth
                        return [];
                }
 
-               $bearer    = trim(substr($authorization, 7));
-
-               $condition = ['access_token' => $bearer];
+               $condition = ['access_token' => trim(substr($authorization, 7))];
 
                $token = DBA::selectFirst('application-view', ['uid', 'id', 'name', 'website', 'created_at', 'read', 'write', 'follow', 'push'], $condition);
                if (!DBA::isResult($token)) {