﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
7563,html_entity_decode at RSS Feed import doesn't respect charset of Blog,codestyling,ryan,"'''Error:''' If the dashboard rss or the rss widgets imports feeds with content containing german special chars like '''&#228;''' equal to '''ä''' this results into display of �[[BR]]


'''Solution:''' Using ''get_option('blog_charset')'' solves the correct display of feed content.


file: wp-admin/includes/dashboard.php 


line: 431


		
{{{
$description = wp_specialchars( strip_tags(html_entity_decode($item['description'], ENT_QUOTES, get_option('blog_charset'))) );
}}}




file: wp-includes/widgets.php 


lines: 1130 and 1132



			
{{{
if ( isset( $item['description'] ) && is_string( $item['description'] ) )
				$desc = $summary = str_replace(array(""\n"", ""\r""), ' ', attribute_escape(strip_tags(html_entity_decode($item['description'], ENT_QUOTES, get_option('blog_charset')))));
			elseif ( isset( $item['summary'] ) && is_string( $item['summary'] ) )
				$desc = $summary = str_replace(array(""\n"", ""\r""), ' ', attribute_escape(strip_tags(html_entity_decode($item['summary'], ENT_QUOTES, get_option('blog_charset')))));

}}}

Using the blog charset the feed content will be shown qualified depending on blogs configuration!

",defect (bug),closed,high,2.8,Feeds,2.5.1,critical,fixed,rss bug feed encoding damage has-patch,
