Properly escape the title in the feed widget, props nbachiyski, fixes #10378 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@11707 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-07-11 04:18:26 +00:00
parent 61b464cd14
commit 45fa3ed5a3
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ class WP_Widget_RSS extends WP_Widget {
if ( ! is_wp_error($rss) ) {
$desc = esc_attr(strip_tags(@html_entity_decode($rss->get_description(), ENT_QUOTES, get_option('blog_charset'))));
if ( empty($title) )
$title = htmlentities(strip_tags($rss->get_title()));
$title = esc_html(strip_tags($rss->get_title()));
$link = esc_url(strip_tags($rss->get_permalink()));
while ( stristr($link, 'http') != $link )
$link = substr($link, 1);