[wp-trac] [WordPress Trac] #2625: Posts with double-quote in title cause malformed XML

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 2 03:00:07 GMT 2006


#2625: Posts with double-quote in title cause malformed XML
-----------------------+----------------------------------------------------
       Id:  2625       |      Status:  new                     
Component:  General    |    Modified:  Sun Apr  2 03:00:07 2006
 Severity:  major      |   Milestone:                          
 Priority:  normal     |     Version:  2.0.2                   
    Owner:  anonymous  |    Reporter:  thetorpedodog           
-----------------------+----------------------------------------------------
 == Steps to reproduce ==
 1. Set up your blog to send as application/xhtml+xml, for instance with WP
 Content Negotiator.

 2. Ensure that there is a comments_popup_link present on your homepage.

 3. Write a post featuring a "double quote" somewhere in the title.

 4. Go to your blog homepage.

 5. In Mozilla/Firefox: Yellow Screen of Death, whatever happens happens in
 Opera


 == Fix ==

 line 315, wp-includes/comment-functions.php

 CHANGE:
 {{{
                 echo ' title="' . sprintf( __('Comment on %s'),
 $post->post_title ) .'">';
 }}}

 TO:
 {{{
                 echo ' title="' . apply_filters('the_title',sprintf(
 __('Comment on %s'), $post->post_title )) .'">';
 }}}

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


More information about the wp-trac mailing list