diff --git a/Application/Base/Tool/Request.class.php b/Application/Base/Tool/Request.class.php index f8a9baad2..7def63602 100644 --- a/Application/Base/Tool/Request.class.php +++ b/Application/Base/Tool/Request.class.php @@ -62,7 +62,8 @@ class Request { public function isIOS13() { - if (preg_match('/OS [1][3-9]_[1-9][_\d]* like Mac OS X/i')) { + $userAgent = $this->getUserAgent(); + if (preg_match('/OS [1][3-9]_[1-9][_\d]* like Mac OS X/i', $userAgent)) { return true; } return false;