From: Marcel Werk Date: Thu, 25 Sep 2014 20:42:21 +0000 (+0200) Subject: Added detection for 'android browser' X-Git-Tag: 2.1.0_Alpha_1~298 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c0e7b3535c9e695fb5124495b381903a8bf0e8dc;p=GitHub%2FWoltLab%2FWCF.git Added detection for 'android browser' --- 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 f6849dbd10..95b41c04cb 100644 --- a/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php +++ b/wcfsetup/install/files/lib/data/user/online/UserOnline.class.php @@ -220,6 +220,11 @@ class UserOnline extends UserProfile { return 'Silk '.$match[1]; } + // android browser + if (preg_match('~Android ([\d\.]+).*AppleWebKit~i', $this->userAgent, $match)) { + return 'Android Browser '.$match[1]; + } + // safari if (preg_match('~([\d\.]+) safari~i', $this->userAgent, $match)) { return 'Safari '.$match[1];