php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #918 get_meta_tags is case-sensitive
Submitted: 1998-11-14 18:06 UTC Modified: 1998-12-07 11:32 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: leon at clearink dot com Assigned: shane (profile)
Status: Closed Package: Misbehaving function
PHP Version: 3.0.5 OS: Windows
Private report: No CVE-ID: None
 [1998-11-14 18:06 UTC] leon at clearink dot com
This function is too dependent on case.  You can start a meta tag with 
<META or <meta, but not <Meta.  Furthermore, you can only specify 
attributes in lowercase.  I'm pretty sure the HTML spec is totally case insensitive
when it comes to tag names and attributes.  

I don't think there's a case insensitive version of strstr, so maybe it's best
to copy what's in the buf variable and make a lowercase version.  Then you
can do strstr on meta.  The offsets would remain the same.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-12-07 11:32 UTC] shane
This is Shane's function, so I've flagged it for his attention.


Fixed in cvs.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 12:01:34 2024 UTC