diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-03-13 06:09:58 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-03-13 06:09:58 +0300 |
commit | dedfb158b35845ede4de1dbacf96a0cf41e45672 (patch) | |
tree | 9f1207c122425d9e77b2f296de80b49473eb08fc /libs | |
parent | 42ae8301fe6c519b05bcbf48c14337db125bf383 (diff) |
fixing windows ME detection (wow!)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/UserAgentParser/UserAgentParser.php | 2 | ||||
-rw-r--r-- | libs/UserAgentParser/test.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/libs/UserAgentParser/UserAgentParser.php b/libs/UserAgentParser/UserAgentParser.php index 9dd20896b7..ae9463f7a7 100644 --- a/libs/UserAgentParser/UserAgentParser.php +++ b/libs/UserAgentParser/UserAgentParser.php @@ -87,7 +87,7 @@ class UserAgentParser 'WinNT' => 'WNT', 'Windows NT' => 'WNT', 'Win 9x 4.90' => 'WME', - 'Windows Me' => 'WME', + 'Windows ME' => 'WME', 'Win32' => 'W95', 'Win95' => 'W95', 'Windows 95' => 'W95', diff --git a/libs/UserAgentParser/test.php b/libs/UserAgentParser/test.php index 5106532185..f837da7ce4 100644 --- a/libs/UserAgentParser/test.php +++ b/libs/UserAgentParser/test.php @@ -17,6 +17,7 @@ $testUserAgent = array( 'Android' => 'Mozilla/5.0 (Linux; U; Android 1.1; en-us; dream) AppleWebKit/525.10+ (KHTML, like Gecko) Version/3.0.4 Mobile Safari/523.12.2', 'PalmOS' => 'Mozilla/5.0 [en] (PalmOS; U; WebPro/3.5; Palm-Zi72) ', 'safari on mac os X' => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/527.3+ (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1', + 'opera 9.64 on win ME' => 'Opera/9.64 (Windows ME; U; en) Presto/2.1.1', ); echo "Test with another user agent: "; foreach($testUserAgent as $name => $userAgent) { |