From: Robert Kaiser Date: Sat, 7 Jan 2023 17:20:01 +0000 (+0100) Subject: fix Gecko version for Firefox 110 and later X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=commitdiff_plain;h=fb10d8f6bc2f713233929e8d6923155597941a84 fix Gecko version for Firefox 110 and later --- diff --git a/classes/useragent.php-class b/classes/useragent.php-class index 9c95c6d..cf38a17 100755 --- a/classes/useragent.php-class +++ b/classes/useragent.php-class @@ -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)) {