mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 21:45:55 +00:00
PHP 8.1 support preparations
This commit is contained in:
@@ -14,7 +14,7 @@ abstract class AdminController extends Controller
|
||||
protected function shouldHandleRequest(Request $request, ConnectionInterface $httpConnection): bool
|
||||
{
|
||||
try {
|
||||
$authorization = Str::after($request->header('Authorization'), 'Basic ');
|
||||
$authorization = Str::after($request->header('Authorization', ''), 'Basic ');
|
||||
$authParts = explode(':', base64_decode($authorization), 2);
|
||||
[$user, $password] = $authParts;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user