[php-maint] Bug#422567: strip_tags() does not handle single quotes correctly

Sean W. Mahan sean at paragoogle.com
Mon May 7 00:26:14 UTC 2007


Package: php5
Version: 5.2.0-8+etch3

This bug - apparently a regression - has been already been reported to
the PHP team here: http://bugs.php.net/bug.php?id=40704
PHP's bug-tracking system reports that this issue was resolved in CVS as
of March 3rd, but it affects the current Debian stable package.  I am
copying Steffen Weber's example:

Reproduce code:
---------------
<?php
$html = "<div>Bug ' Trigger</div> Missing Text";
var_dump(strip_tags($html));
?>

Expected result:
----------------
Prints "Bug ' Trigger Missing Text".

Actual result:
--------------
Prints "Bug ' Trigger".


I presume this is issue can be resolved by incorporating the appropriate
updated code for strip_tags() into Debian's build.




More information about the pkg-php-maint mailing list