[wp-trac] [WordPress Trac] #4307: Single quotes in category name breaks Atom feeds

WordPress Trac wp-trac at lists.automattic.com
Mon May 21 16:25:52 GMT 2007


#4307: Single quotes in category name breaks Atom feeds
----------------------+-----------------------------------------------------
 Reporter:  Otto42    |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  high      |   Milestone:  2.2.1    
Component:  General   |     Version:  2.2      
 Severity:  critical  |    Keywords:           
----------------------+-----------------------------------------------------
 This code in function get_the_category_rss():

 {{{
 if ( 'atom' == $type )
         $the_list .= "<category scheme='$home' term='$category->cat_name'
 />";
 }}}

 Will cause an invalid atom feed if the category name contains a single
 quote (as in "Otto's category"). The cat_name needs to be passed through
 htmlentities (probably) to handle the quotes and other special characters.

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


More information about the wp-trac mailing list