Bug feed name with special chars

https://github.com/marienfressinaud/FreshRSS/issues/462
This commit is contained in:
Alexandre Alapetite committed 2014-03-16 21:15:28 +01:00
1 parent 8fb630821b
commit 5bf511c00f
1 file changed
+2 -2
+2 -2
View File
@@ -210,8 +210,8 @@ class FreshRSS_Feed extends Minz_Model {
}
if ($loadDetails) {
$title = htmlspecialchars(html_only_entity_decode($feed->get_title()), ENT_COMPAT, 'UTF-8');
$this->_name ($title === null ? $this->url : $title);
$title = strtr(html_only_entity_decode($feed->get_title()), array('<' => '&lt;', '>' => '&gt;', '"' => '&quot;')); //HTML to HTML-PRE //ENT_COMPAT except &
$this->_name ($title == '' ? $this->url : $title);
$this->_website(html_only_entity_decode($feed->get_link()));
$this->_description(html_only_entity_decode($feed->get_description()));