From fb10d8f6bc2f713233929e8d6923155597941a84 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sat, 7 Jan 2023 18:20:01 +0100 Subject: [PATCH] fix Gecko version for Firefox 110 and later --- classes/useragent.php-class | 3 +++ 1 file changed, 3 insertions(+) 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)) { -- 2.43.0