Check the start of the string

pull/10230/head
Michael 2021-05-11 13:17:48 +00:00
rodzic 74f3c885bf
commit 7d8c152aaf
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -179,7 +179,7 @@ class BaseApi extends BaseModule
private static function checkBearer(string $authorization)
{
return(strpos($authorization, 'Bearer ') !== false);
return (substr($authorization, 0, 7) == 'Bearer ');
}
private static function getUserByBearer(string $authorization)