Added Safari Mobile Browser Detection
authorSascha Greuel <SoftCreatR@users.noreply.github.com>
Tue, 7 Oct 2014 12:46:53 +0000 (14:46 +0200)
committerSascha Greuel <SoftCreatR@users.noreply.github.com>
Tue, 7 Oct 2014 12:46:53 +0000 (14:46 +0200)
wcfsetup/install/files/lib/data/user/online/UserOnline.class.php

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