Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#8967 closed defect (bug) (fixed)

Calendar link title attributes do not pass XHTML validation if titles contain HTML

Reported by: room34's profile room34 Owned by:
Milestone: 2.8 Priority: normal
Severity: minor Version: 2.7
Component: Validation Keywords: has-patch tested commit
Focuses: Cc:

Description

Title attributes in links generated by the get_calendar() function do not pass XHTML validation if the title contains HTML (for example, em tags for italicized words).

Problem can be resolved by applying htmlentities() function to $ak_titles_for_day[$day] string on line 1072 (in WP 2.7) of general-template.php.

Attachments (1)

8967.diff (679 bytes) - added by Denis-de-Bernardy 15 years ago.

Download all attachments as: .zip

Change History (4)

#1 @Denis-de-Bernardy
15 years ago

  • Keywords has-patch tested commit added; title attribute XHTML validation removed

#2 @ryan
15 years ago

  • Component changed from General to Validation
  • Owner anonymous deleted

#3 @ryan
15 years ago

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

(In [11215]) Escape title attributes in calendar links. fixes #8967

Note: See TracTickets for help on using tickets.