[wp-trac] [WordPress Trac] #17780: Use PHP native double encoding prevention in htmlspecialchars()
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 13 08:03:13 UTC 2011
#17780: Use PHP native double encoding prevention in htmlspecialchars()
-------------------------+----------------------------
Reporter: nbachiyski | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Future Release
Component: General | Version:
Severity: minor | Keywords: needs-patch
-------------------------+----------------------------
Since PHP 5.2.3 the {{{htmlspecialchars()}}} function has an optional
{{{$double_encode}}} parameter, which we could use. This can save us a few
expensive kses/html decoding calls.
We need to make sure it works the same way as our implementation.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17780>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list