Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-01-08 00:56:55 +0400
committermattab <matthieu.aubry@gmail.com>2014-01-08 00:56:55 +0400
commitbe3673cf1a7344e3d82cdf1655ed193f3675689e (patch)
tree2fd299649c997af89547fad3e66a121011e9c0c0 /libs
parent8d23ebb5b32cd1f4ac4b3214798306cd940c8130 (diff)
IE11 detection fix when not using DevicesDetection
Diffstat (limited to 'libs')
-rw-r--r--libs/UserAgentParser/UserAgentParser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/UserAgentParser/UserAgentParser.php b/libs/UserAgentParser/UserAgentParser.php
index 1cb0d09828..27761c7390 100644
--- a/libs/UserAgentParser/UserAgentParser.php
+++ b/libs/UserAgentParser/UserAgentParser.php
@@ -515,7 +515,7 @@ class UserAgentParser
// IE compatibility mode
if ($info['id'] == 'IE'
- && strncmp($userAgent, 'Mozilla/4.0', 11) == 0
+ && (strncmp($userAgent, 'Mozilla/4.0', 11) == 0 || strncmp($userAgent, 'Mozilla/5.0', 11) == 0)
&& preg_match('~ Trident/([0-9]+)\.[0-9]+~', $userAgent, $tridentVersion)
) {
$info['major_number'] = $tridentVersion[1] + 4;