Subject: | detect Windows 7, Windows 8 |
Date: | Wed, 9 Mar 2011 13:56:54 -0600 |
To: | bug-HTML-ParseBrowser [...] rt.cpan.org |
From: | Ray Morris <support [...] bettercgi.com> |
This patch adds detection of Windows 7 (version 6.1)
and Windows 8 (version 6.2).
@@ -84,7 +84,11 @@
if ($browser->{osvers} >= 5) {
if ($browser->{osvers} >= 5.1) {
if ($browser->{osvers} >= 6) {
- if ($browser->{osvers} >= 6.06) {
+ if ($browser->{osvers} = 6.2) {
+ $browser->{osvers} = '8'
+ if ($browser->{osvers} = 6.1) {
+ $browser->{osvers} = '7';
+ elsif ($browser->{osvers} >= 6.06) {
$browser->{osvers} = 'Server 2008';
}
else {
--
Ray Morris
support@bettercgi.com
Strongbox - The next generation in site security:
http://www.bettercgi.com/strongbox/
Throttlebox - Intelligent Bandwidth Control
http://www.bettercgi.com/throttlebox/
Strongbox / Throttlebox affiliate program:
http://www.bettercgi.com/affiliates/user/register.php