Properly escape the title in the feed widget, props nbachiyski, fixes #10378 for 2.8
git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e88c4638a2
commit
c756bd4921
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue