diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-01-08 00:56:55 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-01-08 00:56:55 +0400 |
commit | be3673cf1a7344e3d82cdf1655ed193f3675689e (patch) | |
tree | 2fd299649c997af89547fad3e66a121011e9c0c0 /libs | |
parent | 8d23ebb5b32cd1f4ac4b3214798306cd940c8130 (diff) |
IE11 detection fix when not using DevicesDetection
Diffstat (limited to 'libs')
-rw-r--r-- | libs/UserAgentParser/UserAgentParser.php | 2 |
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; |