diff options
| author | 2014-03-16 21:15:23 +0100 | |
|---|---|---|
| committer | 2014-03-16 21:15:28 +0100 | |
| commit | 5bf511c00f49eb9fd066fb903489e43529dd8338 (patch) | |
| tree | 164b2ccd1b206be6661a63312943a63fce549cdd /app/Models/Feed.php | |
| parent | 8fb630821b3fc22793bf3ef11686cd1df0e53576 (diff) | |
Bug feed name with special chars
https://github.com/marienfressinaud/FreshRSS/issues/462
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index bce3bd24f..13d3dfe88 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -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('<' => '<', '>' => '>', '"' => '"')); //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())); |
