php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40432 strip_tags() fails with greater than in attribute
Submitted: 2007-02-10 15:46 UTC Modified: 2007-02-13 02:16 UTC
From: geoffers at gmail dot com Assigned: iliaa (profile)
Status: Closed Package: Strings related
PHP Version: 5.2.1 OS: Mac OS 10.4.8
Private report: No CVE-ID: None
 [2007-02-10 15:46 UTC] geoffers at gmail dot com
Description:
------------
The following valid (X)HTML is not stripped (this has been 
reported before and closed claiming it is invalid ? read the 
SGML and XML specifications ? this is completely valid).

Reproduce code:
---------------
<?php

echo strip_tags('<span title="test > all">this</span>');

?>

Expected result:
----------------
this

Actual result:
--------------
 all">this

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-13 02:16 UTC] iliaa@php.net
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


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 22:01:28 2024 UTC