From c0e7b3535c9e695fb5124495b381903a8bf0e8dc Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 25 Sep 2014 22:42:21 +0200 Subject: [PATCH] Added detection for 'android browser' --- .../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 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]; -- 2.20.1