mirror of
https://github.com/bitinflow/expose.git
synced 2026-11-01 05:09:11 +00:00
PHP 8.1 support preparations
This commit is contained in:
1 parent
c8c47e8bf6
commit
42044f35d9
11 files changed
+11
-60
No files matched your search
@@ -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