fix Gecko version for Firefox 110 and later
authorRobert Kaiser <kairo@kairo.at>
Sat, 7 Jan 2023 17:20:01 +0000 (18:20 +0100)
committerRobert Kaiser <kairo@kairo.at>
Sat, 7 Jan 2023 17:20:01 +0000 (18:20 +0100)
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)) {