fix Gecko version for Firefox 110 and later
[php-utility-classes.git] / classes / useragent.php-class
index 9c95c6d1d8f9f65653ec55ec1f86cf2aaf9de3cd..cf38a17c56f1c4329e6767697796118f0913e1af 100755 (executable)
@@ -1229,6 +1229,9 @@ class userAgent {
             $this->uadata['lang'] = null;
             $this->uadata['eng_version'] = null;
           }
+          if (($this->brand == 'Firefox') && (intval($this->version) >= 110)) {
+            $this->uadata['eng_version'] = $this->version;
+          }
         }
         elseif ($this->hasEngine('edgehtml')) {
           if (preg_match('#Mozilla/5.0 \(([^;]+); (WOW64|Win64); ([^\);]+)\)#', $this->uastring, $regs)) {