Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Detect Chrome browser version

  • Loading branch information...
commit 0d88fe08d696c8680b86003b1537688d7c73b29e 1 parent b49cc41
J.M authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/Config.class.php
View
4 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(
Please sign in to comment.
Something went wrong with that request. Please try again.