Skip Menu |
 

This queue is for tickets about the HTML-ParseBrowser CPAN distribution.

Report information
The Basics
Id: 89624
Status: resolved
Priority: 0/
Queue: HTML-ParseBrowser

People
Owner: NEILB [...] cpan.org
Requestors: info [...] gwendragon.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.06
Fixed in: 1.07



Subject: Incorrect detection of new Opera Browsers (>=15.x) as Chrome
Newer Opera browsers are icorrectly detected as Chrome. Testcase: x.pl
Subject: x.pl
Download x.pl
text/x-perl 1k
use strict; use warnings; use feature qw(say); my %ua = ( Opera_1216 => 'Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.16', Firefox_24 => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0', IE_10 => 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Win64; x64; Trident/6.0)', Opera_DEV => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.8 Safari/537.36 OPR/18.0.1284.5 (Edition Developer)', Opera_STABLE => 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36 OPR/17.0.1241.45', ); use HTML::ParseBrowser; for my $k ( keys %ua ) { my $ua = HTML::ParseBrowser->new($ua{$k}); print "\n####### : ", $k, "\n"; print "Browser : ", $ua->name, "\n"; print "Version : ", $ua->v, "\n"; print "OS : ", $ua->os, "\n"; print "Language : ", $ua->language//'', "\n"; }
From: info [...] gwendragon.de
Download (untitled) / with headers
text/plain 502b
Output shows: ####### : Opera_STABLE Browser : Chrome Version : 30.0.1599.69 OS : Windows NT 6.1 Language : ####### : Opera_1216 Browser : Opera Version : 12.16 OS : Windows NT 6.1 Language : ####### : IE_10 Browser : Internet Explorer Version : 10.0 OS : Win64 Language : ####### : Firefox_24 Browser : Firefox Version : 24.0 OS : Windows NT 6.1 Language : ####### : Opera_DEV Browser : Chrome Version : 31.0.1650.8 OS : Windows NT 6.1 Language :


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.