Просмотр исходного кода

Fix link encoding in API (#1686)

https://github.com/FreshRSS/FreshRSS/issues/1683
https://github.com/Alkarex/EasyRSS/issues/35
Alexandre Alapetite 8 лет назад
Родитель
Сommit
07fa243bf2
2 измененных файлов с 3 добавлено и 1 удалено
  1. 2 0
      CHANGELOG.md
  2. 1 1
      p/api/greader.php

+ 2 - 0
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

+ 1 - 1
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',