fix: resolve deprecation warnings across the application

This commit is contained in:
xboard
2025-01-26 00:44:58 +08:00
parent 239b970055
commit 2a43a442de
3 changed files with 3 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ class ClientController extends Controller
*/
private function isBrowserAccess(Request $request): bool
{
$userAgent = strtolower($request->input('flag', $request->header('User-Agent')));
$userAgent = strtolower($request->input('flag', $request->header('User-Agent', '')));
return str_contains($userAgent, 'mozilla')
|| str_contains($userAgent, 'chrome')
|| str_contains($userAgent, 'safari')