Edit report at https://bugs.php.net/bug.php?id=70720&edit=1
ID: 70720
Updated by: [email protected]
Reported by: admin at sinfocol dot org
Summary: strip_tags improper php code parsing
Status: Closed
Type: Bug
Package: Strings related
Operating System: Any
PHP Version: Irrelevant
Assigned To: jpauli
Block user comment: N
Private report: N
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
Fixed in next release , at ff7ed9021cd72a7f82dd4301cdc266afdff458ad
Previous Comments:
------------------------------------------------------------------------
[2015-12-22 15:29:37] [email protected]
Automatic comment on behalf of jpauli
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ff7ed9021cd72a7f82dd4301cdc266afdff458ad
Log: Fix #70720
------------------------------------------------------------------------
[2015-12-22 15:29:09] [email protected]
Automatic comment on behalf of jpauli
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ff7ed9021cd72a7f82dd4301cdc266afdff458ad
Log: Fix #70720
------------------------------------------------------------------------
[2015-12-22 15:28:39] [email protected]
Automatic comment on behalf of jpauli
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ff7ed9021cd72a7f82dd4301cdc266afdff458ad
Log: Fix #70720
------------------------------------------------------------------------
[2015-12-22 14:15:51] [email protected]
Requalifying as non-security bug
------------------------------------------------------------------------
[2015-10-15 14:54:59] admin at sinfocol dot org
Description:
------------
Hello,
The strip_tags function stop the processing of php code until the next ">" is found if the string "xml" is included within php tags.
Test script:
---------------
<?php
var_dump(strip_tags('<?php $dom->test(); ?> this is a test'));
var_dump(strip_tags('<?php $xml->test(); ?> this is a test'));
Expected result:
----------------
string(15) " this is a test"
string(15) " this is a test"
Actual result:
--------------
string(15) " this is a test"
string(25) "test(); ?> this is a test"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70720&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.