#24832 [Ana->Asn]: Net::UserAgent_Detect: Problem with some user agents
| From: | arnaud@php.net | Date: | Wed, 30 Jul 2003 09:12:44 +0000 |
| Subject: | #24832 [Ana->Asn]: Net::UserAgent_Detect: Problem with some user agents | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-18929@lists.php.net to get a copy of this message | ||
ID: 24832
Updated by: arnaud@php.net
Reported By: ddomhoff at web dot de
-Status: Analyzed
+Status: Assigned
Bug Type: PEAR related
Operating System: Irrelevant
PHP Version: Irrelevant
-Assigned To:
+Assigned To: dallen
Previous Comments:
------------------------------------------------------------------------
[2003-07-28 09:12:42] nicos@php.net
Hmm, according to the line 249, it looks the reg
doesnt allow '_'.
if (preg_match(";^([[:alnum:]]+)[
/\(]*[[:alpha:]]*([\d]*)(\.[\d\.]*);", $agt, $matches)) {
------------------------------------------------------------------------
[2003-07-27 17:04:49] ddomhoff at web dot de
Description:
------------
It seems, that Net_UserAgent_Detect does not get along with user
agents, which have an underscore in their string, like the W3C
Validator has.
If there is one, you get notices:
Undefined offset: 0 in PEAR\Net\UserAgent\Detect.php on line 249
The same for offset 1, 2 and 3.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24832&edit=1