Bug #70720 [Csd]: strip_tags improper php code parsing
| From: | jpauli@php.net | Date: | Tue, 22 Dec 2015 15:35:09 +0000 |
| Subject: | Bug #70720 [Csd]: strip_tags improper php code parsing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-198145@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70720&edit=1
ID: 70720
Updated by: jpauli@php.net
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] jpauli@php.net
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] jpauli@php.net
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] jpauli@php.net
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] jpauli@php.net
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