Permalink
Browse files

Updates User Agent detection.

  • Loading branch information...
JB Lebrun
JB Lebrun committed Mar 12, 2018
1 parent 146fc03 commit 71bf3d63016750b557c0b2c3c3bef3d533398972
Showing with 5 additions and 5 deletions.
  1. +5 −5 engine/lib/tool/client.php.inc
@@ -1601,15 +1601,15 @@ function client_getUAInfos($ua=false) {
}
/* check compatible level 2 browsers */
elseif (preg_match('/(Yowser|MQQBrowser)\/([a-z0-9\._]*)?/i', $ua, $matches)) {
elseif (preg_match('/(Yowser|MQQBrowser|Goanna)\/([a-z0-9\._]*)?/i', $ua, $matches)) {
$rep = array('MQQBrowser'=>'Mobile QQBrowser');
$infos = array_merge($infos, array(
'browser_title' => isset($rep[$matches[1]])?$rep[$matches[1]]:$matches[1],
'browser_version' => isset($matches[2])?$matches[2]:'',
));
}
/* check Chrome/Safari/Firefox/Explorer with specific details */
/* check Chrome/Safari/Firefox/Explorer compatible browsers, with specific details */
elseif (preg_match('/(Viera)\/([a-z0-9\._]*)?/i', $ua, $matches)) {
$rep = array(
'Viera' => array('browser_title'=>'Viera', 'platform_type'=>'tvset'),
@@ -3883,7 +3883,7 @@ function client_getKnownBots() {
'platform_type'=>'bot',
'platform_format'=>'desktop',
'bot_title'=>'Digincore crawler',
'bot_url'=>'',
'bot_url'=>'https://www.digincore.com/crawler.html',
'engine_title'=>'Digincore.com',
'engine_url'=>'https://www.digincore.com/index.php');
@@ -7145,8 +7145,8 @@ function _client_getUAPropertiesMaxVersions() {
),
'browser' => array(
'Firefox' => '64', // current is 58
'Chrome' => '70', // current is 64
'Chromium' => '70', // current is 64
'Chrome' => '70', // current is 65
'Chromium' => '70', // current is 65
'Internet Explorer' => '11.0.50', // latest
'Edge' => '45', // current is 40
'Opera' => '55', // current is 50

0 comments on commit 71bf3d6

Please sign in to comment.