Ask a Question related to PHP Bugs, Design and Development.
-
email at steffenweber dot net #1
#40704 [NEW]: strip_tags does not handle single quotes correctly (another regression)
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
[url]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&vie w=patch[/url]
- Bug #40637
[url]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&vie w=patch[/url]
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 [url]http://bugs.php.net/?id=40704&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40704&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40704&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40704&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40704&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40704&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40704&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40704&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=40704&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=40704&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=40704&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=40704&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=40704&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=40704&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40704&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=40704&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=40704&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40704&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=40704&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40704&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40704&r=mysqlcfg[/url]
email at steffenweber dot net Guest
-
#40637 [NEW]: strip_tags does not handle single quotes correctly (regression)
From: email at steffenweber dot net Operating system: Linux PHP version: 5.2.1 PHP Bug Type: Strings related Bug... -
cfquery not escaping single quotes correctly
It seems as if two single quotes together do not get escaped. <!--- This code works in CF5 with the proper Data OK message. It does not work on... -
Single Quotes vs Double Quotes
With all that's been said in mind ('$var' unparsed "$var" parsed). The rule of thumb I follow is, if it needs to be parsed (has a $variable or \n... -
[PHP] Single Quotes vs Double Quotes
Hi, Tuesday, September 9, 2003, 2:03:34 PM, you wrote: mb> Hi everyone, mb> Could somebody please explain to me the difference mb> between... -
Recommend pse: Quotes, Single Quotes, etc. basics
I've been fooling with this stuff for awhile and I still have problems with quotes, double quotes, etc. I have no programming or database... -
iliaa@php.net #2
#40704 [Opn->Csd]: strip_tags does not handle single quotes correctly (another regression)
ID: 40704
Updated by: [email]iliaa@php.net[/email]
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
[url]http://snaps.php.net/[/url].
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
[url]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&vie w=patch[/url]
- Bug #40637
[url]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&vie w=patch[/url]
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 [url]http://bugs.php.net/?id=40704&edit=1[/url]
iliaa@php.net Guest



Reply With Quote

