Bug #80565 [NEW]: strip_tags altering allow tags attributes
| From: | roberto dot diana at gmail dot com | Date: | Wed, 30 Dec 2020 21:29:54 +0000 |
| Subject: | Bug #80565 [NEW]: strip_tags altering allow tags attributes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-231315@lists.php.net to get a copy of this message | ||
From: roberto dot diana at gmail dot com
Operating system:
PHP version: master-Git-2020-12-30 (Git)
Package: *General Issues
Bug Type: Bug
Bug description:strip_tags altering allow tags attributes
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 bug report at https://bugs.php.net/bug.php?id=80565&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80565&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80565&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80565&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80565&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80565&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80565&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80565&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80565&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80565&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80565&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80565&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80565&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80565&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80565&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80565&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80565&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80565&r=mysqlcfg