Added detection for 'android browser'
authorMarcel Werk <burntime@woltlab.com>
Thu, 25 Sep 2014 20:42:21 +0000 (22:42 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 25 Sep 2014 20:42:21 +0000 (22:42 +0200)
wcfsetup/install/files/lib/data/user/online/UserOnline.class.php

index f6849dbd10edebbbe3f2289ea01f65b2fc169d13..95b41c04cb688528cdb6f2e5fe82f9172cde2838 100644 (file)
@@ -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];