WordPress.org

Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2915 closed defect (bug) (fixed)

XHTML validation failure when entry title containing quotes

Reported by: deko Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0.4
Component: Administration Keywords: bg|needs-patch bg|2nd-opinion
Focuses: Cc:

Description

line 331 comment-functions.php

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

PROBLEM: XHTML validation failure when a entry title contains quotes is used, such as: This a "blog" entry title?

Error message from W3C validation service:

This page is not Valid XHTML 1.0 Transitional!
Error: an attribute value literal can occur in an attribute specification list only after a VI delimiter.
... This is a "blog" entry title?">Comments &#187;</a></p>

Change History (6)

#1 @error
15 years ago

  • Keywords bg|needs-patch bg|2nd-opinion added
  • Milestone set to 2.0.4
  • Version set to 2.0.4

skeltoac sez: wp_specialchars($str, 'double')
should fix it.

#2 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3993]) specialchars comment title. Props deko. fixes #2915

#3 @ryan
15 years ago

(In [3994]) specialchars quotes in comment title. Props deko. fixes #2915

#4 @ryan
15 years ago

(In [3995]) specialchars quotes in comment title. Props deko. fixes #2915

#5 @Viper007Bond
15 years ago

Haha, I reported this 7 months ago. Glad it finally got fixed. :)

#6 @(none)
15 years ago

  • Milestone 2.0.4 deleted

Milestone 2.0.4 deleted

Note: See TracTickets for help on using tickets.