A free, self-hostable news aggregator…
Fix favicon hashing in GReader API (#7573)
CarelessCautionc6f09e1ae464
diff --git a/p/api/fever.php b/p/api/fever.phpindex 2ef3e4f9a..6251842e7 100644--- a/p/api/fever.php+++ b/p/api/fever.php@@ -360,7 +360,7 @@ final class FeverAPI$myFeeds = $this->feedDAO->listFeeds();foreach ($myFeeds as $feed) {- $id = hash('crc32b', $salt . $feed->url());+ $id = $feed->hashFavicon();$filename = DATA_PATH . '/favicons/' . $id . '.ico';if (!file_exists($filename)) {continue;diff --git a/p/api/greader.php b/p/api/greader.phpindex 2a925f2a5..00bcf10f2 100644--- a/p/api/greader.php+++ b/p/api/greader.php@@ -353,7 +353,7 @@ final class GReaderAPI {//'firstitemmsec' => 0,'url' => htmlspecialchars_decode($feed->url(), ENT_QUOTES),'htmlUrl' => htmlspecialchars_decode($feed->website(), ENT_QUOTES),- 'iconUrl' => $faviconsUrl . hash('crc32b', $salt . $feed->url()),+ 'iconUrl' => $faviconsUrl . $feed->hashFavicon(),];}}