kopia lustrzana https://github.com/friendica/friendica
Check the start of the string
rodzic
74f3c885bf
commit
7d8c152aaf
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue