Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#2626 closed defect (bug) (duplicate)

Posts with double-quote in title cause malformed XML

Reported by: thetorpedodog Owned by:
Milestone: Priority: normal
Severity: major Version: 2.0.2
Component: General Keywords: xml malformed comment template
Focuses: Cc:


Steps to reproduce

  1. Set up your blog to send as application/xhtml+xml, for instance with WP Content Negotiator.
  1. Ensure that there is a comments_popup_link present on your homepage.
  1. Write a post featuring a "double quote" somewhere in the title.
  1. Go to your blog homepage.
  1. In Mozilla/Firefox: Yellow Screen of Death, whatever happens happens in Opera


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


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


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

Change History (1)

#1 @thetorpedodog
10 years ago

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.