Bug #80565 [Opn->Dup]: strip_tags altering allow tags attributes
| From: | cmb@php.net | Date: | Wed, 30 Dec 2020 22:12:32 +0000 |
| Subject: | Bug #80565 [Opn->Dup]: strip_tags altering allow tags attributes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231318@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80565&edit=1
ID: 80565
Updated by: cmb@php.net
Reported by: roberto dot diana at gmail dot com
Summary: strip_tags altering allow tags attributes
-Status: Open
+Status: Duplicate
Type: Bug
Package: *General Issues
PHP Version: master-Git-2020-12-30 (Git)
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Duplicate of bug #74371.
Previous Comments:
------------------------------------------------------------------------
[2020-12-30 21:37:58] roberto dot diana at gmail dot com
related bug ticket
https://bugs.php.net/bug.php?id=74371
------------------------------------------------------------------------
[2020-12-30 21:33:59] roberto dot diana at gmail dot com
The following pull request has been associated:
Patch Name: Adds test and fix to bug 74371 but for php8
On GitHub: https://github.com/php/php-src/pull/6492
Patch: https://github.com/php/php-src/pull/6492.patch
------------------------------------------------------------------------
[2020-12-30 21:29:53] roberto dot diana at gmail dot com
Description:
------------
Basic test example
https://3v4l.org/4Yaoj
Test script:
---------------
<?php
echo strip_tags('<tag alt="xx> xx<">', '<tag>') .
PHP_EOL;
Expected result:
----------------
<tag alt="xx> xx<">
Actual result:
--------------
<tag alt="xx xx">
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80565&edit=1