[wp-trac] [WordPress Trac] #17408: feed_links_extra does not escape html entities, causing invalid (X)HTML

WordPress Trac wp-trac at lists.automattic.com
Fri May 13 04:19:47 UTC 2011


#17408: feed_links_extra does not escape html entities, causing invalid (X)HTML
--------------------------+-----------------------------
 Reporter:  solarissmoke  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 I was investigating [http://wordpress.org/support/topic/xml-parse-error-
 in-rss-feed-url this forum thread] and found that the issue was with core.

 When pretty permalinks are disabled, `feed_links_extra()` can generate
 URLs like this for a search result:

 {{{
 href="http://localhost/wp/?s=something&feed=rss2"
 }}}

 ...which is invalid html because the ampersand should be escaped as an
 entity.

 Patch attached.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17408>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list