From 07fa243bf24f0c4bef2df612a316e8d58907dc8a Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 11 Nov 2017 12:21:41 +0100 Subject: Fix link encoding in API (#1686) https://github.com/FreshRSS/FreshRSS/issues/1683 https://github.com/Alkarex/EasyRSS/issues/35 --- CHANGELOG.md | 2 ++ p/api/greader.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b74efe42f..d7f045397 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 2017-1X-XX FreshRSS 1.8.1-dev +* API + * Breaking change / compatibility fix (EasyRSS): Provide `link` to articles without HTML-encoding [#1683](https://github.com/FreshRSS/FreshRSS/issues/1683) * Features * Share with Mastodon [#1521](https://github.com/FreshRSS/FreshRSS/issues/1521) * UI diff --git a/p/api/greader.php b/p/api/greader.php index b87fcc225..f086ee442 100644 --- a/p/api/greader.php +++ b/p/api/greader.php @@ -517,7 +517,7 @@ function streamContents($path, $include_target, $start_time, $count, $order, $ex 'title' => $entry->title(), 'summary' => array('content' => $entry->content()), 'alternate' => array( - array('href' => $entry->link()), + array('href' => htmlspecialchars_decode($entry->link(), ENT_QUOTES)), ), 'categories' => array( 'user/-/state/com.google/reading-list', -- cgit v1.2.3