[wp-trac] [WordPress Trac] #19998: Feeds can contain characters that are not valid XML
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 9 16:28:47 UTC 2012
#19998: Feeds can contain characters that are not valid XML
--------------------------+-----------------------------
Reporter: westi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Feeds | Version: 3.3.1
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
It is possible for any of the feeds to contain control characters which
are not valid in XML e.g.
http://www.fileformat.info/info/unicode/char/1c/index.htm
When outputting user supplied content in an XML context we should strip
these control characters - they are unprintable and just break feed
parsers.
http://en.wikipedia.org/wiki/Valid_characters_in_XML has a good list of
what is and isn't valid.
I guess we need a {{{strip_for_xml()}}} function or something.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19998>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list