correctly detect N900's microB
[php-utility-classes.git] / include / classes / useragent.php-class
index f87badba4b5c0d98a62c697f1a877182c2d470c9..0b2279b98ddee0ac2a24d4295a26a6df4661a952 100755 (executable)
@@ -297,6 +297,11 @@ class userAgent {
       $this->version = $regs[1];
       $this->bot = false;
     }
+    elseif (preg_match('|Maemo Browser ([0-9a-zA-Z\.+]+)|', $this->uastring, $regs)) {
+      $this->brand = 'microB';
+      $this->version = $regs[1];
+      $this->bot = false;
+    }
     elseif (preg_match('|Opera\/([^\(]+) \(.*; Opera Mini; |', $this->uastring, $regs)) {
       $this->brand = 'Opera Mini';
       $this->version = $regs[1];