PHP 4.0 Bug #7472 Updated: problem with strip_tags() function

From: Date: Thu, 26 Oct 2000 03:09:32 +0000
Subject: PHP 4.0 Bug #7472 Updated: problem with strip_tags() function
Groups: php.dev 
Request: Send a blank email to php-dev+get-36040@lists.php.net to get a copy of this message
ID: 7472 User Update by: kjackson@gpu.srv.ualberta.ca Status: Open Bug Type: Scripting Engine problem Description: problem with strip_tags() function oops, did not escape dollar signs. Doing so does not effect results. Previous Comments: --------------------------------------------------------------------------- [2000-10-25 23:06:05] kjackson@gpu.srv.ualberta.ca This bug causes strip_tags to stop stripping php tags, if your string contains the following in a <?php?> delimiter. "title = "([^"]+)"" Example: echo strip_tags(" aghh1 <?PHP if (eregi("title = \"([^\"]+)", $x, $y)) echo "foobar"; ?> aghh2 "); will result in only aghh1 being reported when aghh2 should clearly be as well --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7472

« previous php.dev (#36040) next »