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>2013-10-23 01:39:07 +0400
committermattab <matthieu.aubry@gmail.com>2013-10-23 01:39:07 +0400
commite78b9ee3bef1f0ec15fa974fb472d70f8326abe8 (patch)
treed2c0db79cebdaf8a395f76b53184319fa8898fe7 /libs
parent0e03cf55defff9455ee1fdd462d5aec53eacb1fc (diff)
Fixes #4235 Adding Windows 8.1 detection
Diffstat (limited to 'libs')
-rw-r--r--libs/UserAgentParser/UserAgentParser.php1
-rw-r--r--libs/UserAgentParser/UserAgentParser.test.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/libs/UserAgentParser/UserAgentParser.php b/libs/UserAgentParser/UserAgentParser.php
index 85c9225cc5..1cb0d09828 100644
--- a/libs/UserAgentParser/UserAgentParser.php
+++ b/libs/UserAgentParser/UserAgentParser.php
@@ -230,6 +230,7 @@ class UserAgentParser
'CYGWIN_NT-6.2' => 'WI8',
'Windows NT 6.2' => 'WI8',
+ 'Windows NT 6.3' => 'WI8',
'Windows 8' => 'WI8',
'CYGWIN_NT-6.1' => 'WI7',
'Windows NT 6.1' => 'WI7',
diff --git a/libs/UserAgentParser/UserAgentParser.test.php b/libs/UserAgentParser/UserAgentParser.test.php
index cd23f36e99..5d59eed198 100644
--- a/libs/UserAgentParser/UserAgentParser.test.php
+++ b/libs/UserAgentParser/UserAgentParser.test.php
@@ -28,6 +28,7 @@ $testUserAgent = array(
'firefox 3.5 alpha on win7' => 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1b4pre) Gecko/20090420 Shiretoko/3.5b4pre (.NET CLR 3.5.30729)',
'firefox nightly build' => 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:2.0a1pre) Gecko/2008060602 Minefield/4.0a1pre',
'thunderbird 14.0 with lightning 1.6' => 'Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 Lightning/1.6',
+ 'Windows 8' => 'Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko',
);
echo "Test with another user agent: ";
foreach ($testUserAgent as $name => $userAgent) {