From 8483d878ec4dd1f7f1657c7c5562bfdb693e3679 Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Tue, 7 Oct 2014 14:46:53 +0200 Subject: [PATCH] Added Safari Mobile Browser Detection --- .../install/files/lib/data/user/online/UserOnline.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php index 95b41c04cb..bffadc153a 100644 --- a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php +++ b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php @@ -225,6 +225,11 @@ class UserOnline extends UserProfile { return 'Android Browser '.$match[1]; } + // safari mobile + if (preg_match('~([\d\.]+) Mobile/\w+ safari~i', $this->userAgent, $match)) { + return 'Safari Mobile '.$match[1]; + } + // safari if (preg_match('~([\d\.]+) safari~i', $this->userAgent, $match)) { return 'Safari '.$match[1]; -- 2.20.1