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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mark at mark-martin dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Sun Dec 05 05:03:37 2021 UTC