Tracker: Bugs

5 decodeHtml does not decode some entities - ID: 1790469
Last Update: Comment added ( pp11 )

Some entities (specifically &#039, but likely others[1]) are not decoded by SimpleHtmlSaxParser::decodeHtml(). I've attached a patch that should fix the bug, and should work back to PHP 4.3.0 (not quite enough to match Simpletest's support). The patch also updates a test, in order to allow for verification of the existence and correction of the bug.


[1] Heavy discussion about decodeHtml's prior implementation, and better (compatible) ways to do it, can be found in the user comments at:
<http://www.php.net/manual/en/function.htmlentities.php>


Quandary ( ai2097 ) - 2007-09-07 15:30:12 PDT

5

Closed

Fixed

Perrick Penet

Web tester

None

Public


Comments ( 2 )

Date: 2007-12-27 01:02:57 PST
Sender: pp11Project Admin


Thank you for the report. And for the fix as well, it's been applied in the
SVN trunk.

Yours,
Perrick




Date: 2007-09-07 15:34:01 PDT
Sender: ai2097


This is related to, but not a dup of, bug 1787087.


Attached File ( 1 )

Filename Description Download
decode_numerics_bugfix.diff Decode more entities by using html_entity_decode Download

Changes ( 5 )

Field Old Value Date By
status_id Open 2007-12-27 01:02:57 PST pp11
resolution_id None 2007-12-27 01:02:57 PST pp11
assigned_to lastcraft 2007-12-27 01:02:57 PST pp11
close_date - 2007-12-27 01:02:57 PST pp11
File Added 244673: decode_numerics_bugfix.diff 2007-09-07 15:30:14 PDT ai2097