Skip to content

A free, self-hostable news aggregator…

Fix API custom favicon (#9409)

Alexandre Alapetiteda9dc448c658
diff --git a/p/api/greader.php b/p/api/greader.php
index 8de75cc42..bd1eaf55b 100644
--- a/p/api/greader.php
+++ b/p/api/greader.php
@@ -357,13 +357,13 @@ final class GReaderAPI {
'label' => htmlspecialchars_decode($cat->name(), ENT_QUOTES),
],
],
- //'sortid' => $feed->name(),
+ //'sortid' => htmlspecialchars_decode($feed->name(), ENT_QUOTES),
//'firstitemmsec' => 0,
'url' => htmlspecialchars_decode($feed->url(), ENT_QUOTES),
'htmlUrl' => htmlspecialchars_decode($feed->website(), ENT_QUOTES),
'iconUrl' => str_replace(
'/api/greader.php/reader/api/0/subscription', '', // Security if base_url is not set properly
- $feed->favicon(absolute: true)),
+ htmlspecialchars_decode($feed->favicon(absolute: true), ENT_QUOTES)),
'frss:priority' => match ($feed->priority()) {
FreshRSS_Feed::PRIORITY_IMPORTANT => FreshRSS_Export_Service::PRIORITY_IMPORTANT,
FreshRSS_Feed::PRIORITY_MAIN_STREAM => FreshRSS_Export_Service::PRIORITY_MAIN_STREAM,