Bug #918: get_meta_tags is case-sensitive

From: Date: Sat, 14 Nov 1998 23:06:55 +0000
Subject: Bug #918: get_meta_tags is case-sensitive
Groups: php.dev 
Request: Send a blank email to php-dev+get-2406@lists.php.net to get a copy of this message
From: leon@clearink.com Operating system: Windows PHP version: 3.0.5 PHP Bug Type: Misbehaving function Bug description: get_meta_tags is case-sensitive 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. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2406) next »