From: Sascha Greuel Date: Tue, 7 Oct 2014 12:46:53 +0000 (+0200) Subject: Added Safari Mobile Browser Detection X-Git-Tag: 2.1.0_Alpha_1~261^2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8483d878ec4dd1f7f1657c7c5562bfdb693e3679;p=GitHub%2FWoltLab%2FWCF.git Added Safari Mobile Browser Detection --- 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];