add Firefox for iOS detection
[php-utility-classes.git] / include / classes / useragent.php-class
index a70915de827d03b4f726f544e2a425e8c253d92e..22dc491be76ab42239daa637314fdd145878796a 100755 (executable)
@@ -410,6 +410,12 @@ class userAgent {
       $this->bot = true;
       $this->mobile = true;
     }
+    elseif (preg_match('|FxiOS/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
+      $this->brand = 'Firefox for iOS';
+      $this->version = $regs[1];
+      $this->bot = false;
+      $this->mobile = true;
+    }
     elseif (preg_match('|Safari/([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
       if (preg_match('| Mobile(/[0-9a-zA-Z\.+]+)? ?Safari/|', $this->uastring)) {
         $this->brand = 'Mobile Safari';