From 96fb15158bb5da4af724307dc7d553de38b2cc29 Mon Sep 17 00:00:00 2001 From: Anonymous Date: Wed, 23 Oct 2019 02:49:11 +0800 Subject: [PATCH] update --- app/Http/Controllers/ClientController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ClientController.php b/app/Http/Controllers/ClientController.php index d17c7ac4..1ca3fab7 100755 --- a/app/Http/Controllers/ClientController.php +++ b/app/Http/Controllers/ClientController.php @@ -22,10 +22,10 @@ class ClientController extends Controller } } } - if(strpos($_SERVER['HTTP_USER_AGENT'], 'Quantumult-X') !== -1) { + if(strpos($_SERVER['HTTP_USER_AGENT'], 'Quantumult-X') !== false) { die($this->quantumultX($user, $server)); } - if(strpos($_SERVER['HTTP_USER_AGENT'], 'Quantumult') !== -1) { + if(strpos($_SERVER['HTTP_USER_AGENT'], 'Quantumult') !== false) { die($this->quantumult($user, $server)); } die($this->origin($user, $server));