php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24902 eregi matching incorrectly
Submitted: 2003-08-01 08:14 UTC Modified: 2003-08-01 08:25 UTC
From: mark at mark-martin dot com Assigned:
Status: Not a bug Package: Regexps related
PHP Version: 4.3.2 OS: Suse 8.0
Private report: No CVE-ID: None
 [2003-08-01 08:14 UTC] mark at mark-martin dot com
Description:
------------
given the expression:

eregi("<[^>]*meta*\"?[^>]*>", $secvalue) 

when $secvalue="<met>test</met>", this expression returns true.

aren't the litterals here "meta" = "met"?




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-01 08:25 UTC] edink@php.net
meta* means met followed by 0 or more occurences of 'a'.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC