Skip Menu |

This queue is for tickets about the HTTP-DetectUserAgent CPAN distribution.

Report information
The Basics
Id: 45908
Status: open
Priority: 0/
Queue: HTTP-DetectUserAgent

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.01
Fixed in: (no value)



Subject: fails on MSIE6 + MRA
=== Internet Explorer 6.0 --- input Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; MRA 4.6 (build 01425); Maxthon; .NET CLR 1.1.4322; .NET CLR 2.0.50727) --- expected name: "Internet Explorer" version: "6.0" vendor: "Microsoft" os: "Windows" Simple solution is to allow one level of nested quotes. Something like this: /\(.*?(?:\(.*?\).*?)?\)/ -- Alexandr Ciornii, http://chorny.net
Similar string: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; (R1 1.6)) -- Alexandr Ciornii, http://chorny.net