Permalink
Browse files

Detect Chrome browser version

  • Loading branch information...
J.M
J.M committed Apr 8, 2013
1 parent b49cc41 commit 0d88fe08d696c8680b86003b1537688d7c73b29e
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/Config.class.php
@@ -216,9 +216,9 @@ function checkClient()
'@Mozilla/([0-9].[0-9]{1,2})@',
$HTTP_USER_AGENT,
$log_version)
- && preg_match('@Chrome/([0-9]*)@', $HTTP_USER_AGENT, $log_version2)
+ && preg_match('@Chrome/([0-9.]*)@', $HTTP_USER_AGENT, $log_version2)
) {
- $this->set('PMA_USR_BROWSER_VER', $log_version[1] . '.' . $log_version2[1]);
+ $this->set('PMA_USR_BROWSER_VER', $log_version2[1]);
$this->set('PMA_USR_BROWSER_AGENT', 'CHROME');
// newer Safari
} elseif (preg_match(

0 comments on commit 0d88fe0

Please sign in to comment.