diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-05-25 03:28:51 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-05-25 03:29:28 +0200 |
commit | b12e151bcdbeb46a4199006a811da365317e5c7a (patch) | |
tree | d23a38b70dbec12740b593d2d00feef6ec19534f /utility | |
parent | 2b5e3372ca6fd8c0e7a6f33e71a8bdf17e4e430e (diff) |
Also html decode the links to the page to not break on nyaa torrents
Diffstat (limited to 'utility')
-rw-r--r-- | utility/feedfetcher.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/utility/feedfetcher.php b/utility/feedfetcher.php index 0083f1969..63e666f65 100644 --- a/utility/feedfetcher.php +++ b/utility/feedfetcher.php @@ -111,10 +111,11 @@ class FeedFetcher implements IFeedFetcher { $item = new Item(); $item->setStatus(0); $item->setUnread(); - $item->setUrl($simplePieItem->get_permalink()); + $item->setUrl(html_entity_decode($simplePieItem->get_permalink(), + ENT_COMPAT, 'UTF-8')); // unescape content because angularjs helps against XSS - $item->setTitle(html_entity_decode($simplePieItem->get_title()), - ENT_COMPAT, 'UTF-8' ); + $item->setTitle(html_entity_decode($simplePieItem->get_title(), + ENT_COMPAT, 'UTF-8')); $guid = $simplePieItem->get_id(); $item->setGuid($guid); $item->setGuidHash(md5($guid)); |