PHP 8.1 support preparations

This commit is contained in:
Marcel Pociot
2021-12-16 16:41:26 +01:00
parent c8c47e8bf6
commit 42044f35d9
11 changed files with 11 additions and 60 deletions

View File

@@ -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;