#40704 [NEW]: strip_tags does not handle single quotes correctly (another regression)
| From: | email at steffenweber dot net | Date: | Sat, 03 Mar 2007 10:19:10 +0000 |
| Subject: | #40704 [NEW]: strip_tags does not handle single quotes correctly (another regression) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-109820@lists.php.net to get a copy of this message | ||
From: email at steffenweber dot net
Operating system: Linux
PHP version: 5.2.1
PHP Bug Type: Strings related
Bug description: strip_tags does not handle single quotes correctly (another regression)
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 bug report at http://bugs.php.net/?id=40704&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40704&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40704&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40704&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40704&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40704&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40704&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40704&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40704&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40704&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40704&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40704&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40704&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40704&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40704&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40704&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40704&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40704&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40704&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40704&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40704&r=mysqlcfg