#40704 [Opn->Csd]: strip_tags does not handle single quotes correctly (another regression)
| From: | iliaa@php.net | Date: | Sat, 03 Mar 2007 15:46:43 +0000 |
| Subject: | #40704 [Opn->Csd]: strip_tags does not handle single quotes correctly (another regression) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-109827@lists.php.net to get a copy of this message | ||
ID: 40704
Updated by: iliaa@php.net
Reported By: email at steffenweber dot net
-Status: Open
+Status: Closed
Bug Type: Strings related
Operating System: Linux
PHP Version: 5.2.1
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-03-03 10:19:10] email at steffenweber dot net
Description:
------------
I think the fix for bug #40637 did not completely fix the regression
caused by the fix for bug #40432. I'm using PHP 5.2.1 and the following
patches from branch:
- Bug #40432
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.445.2.14.2.39&r2=1.445.2.14.2.40&view=patch
- Bug #40637
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.445.2.14.2.42&r2=1.445.2.14.2.43&view=patch
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".
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40704&edit=1