Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#10378 closed defect (bug) (fixed)

The feed widget breaks UTF-8 titles

Reported by: nbachiyski Owned by: azaozz
Priority: normal Milestone: 2.8.2
Component: Widgets Version: 2.8.1
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

WP_Widget_RSS::widget() calls htmlentities() on the feed title, which by default assumes the string is in iso-8859-1 and thus encodes every byte as an entity.

In fact, we don't need to use htmlentities(), since the title is used in HTML. esc_html() is enough.

Attachments (1)

feed-widget-non-ascii-titles.diff (655 bytes ) - added by nbachiyski 17 years ago.

Download all attachments as: .zip

Change History (4)

#1 @azaozz
17 years ago

  • Resolutionfixed
  • Status newclosed

(In [11706]) Properly escape the title in the feed widget, props nbachiyski, fixes #10378 for 2.8

#2 @azaozz
17 years ago

(In [11707]) Properly escape the title in the feed widget, props nbachiyski, fixes #10378 for trunk

#3 @azaozz
17 years ago

  • Milestone Unassigned2.8.2
Note: See TracTickets for help on using tickets.