X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=include%2Fclasses%2Fuseragent.php-class;h=776cae47426228ea2048666976a2a9ac43f14cae;hp=0512f693f88737177e4cf372e27c559112808ba0;hb=7f0cf175bf3b571d4d1e15d45d37319bf5ebd2be;hpb=705a28fb9b294efc9f10f793dcb980feaec6f016 diff --git a/include/classes/useragent.php-class b/include/classes/useragent.php-class index 0512f69..776cae4 100755 --- a/include/classes/useragent.php-class +++ b/include/classes/useragent.php-class @@ -1147,6 +1147,11 @@ class userAgent { $this->uadata['lang'] = null; $this->uadata['eng_version'] = null; } + elseif (preg_match('|Mozilla/5.0 \(Mobile; rv:([^\);]+)\)|', $this->uastring, $regs)) { + $this->uadata['os'] = 'Firefox OS'; + $this->uadata['lang'] = null; + $this->uadata['eng_version'] = $regs[1]; + } elseif (preg_match('|Mozilla/5.0 \(([^;]+); rv:([^\);]+)\)|', $this->uastring, $regs)) { $this->uadata['os'] = $regs[1]; $this->uadata['lang'] = null;