From 5897487f2f29cd3f29b538919c57988f118461e7 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 7 Nov 2022 08:34:12 +0100 Subject: Fix path_entries encoding (#4823) * Fix path_entries encoding #fix https://github.com/FreshRSS/FreshRSS/issues/4815 * Fix preview --- app/Models/Entry.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/Models/Entry.php') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 12cef68a5..47fcf3b4a 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -184,6 +184,7 @@ class FreshRSS_Entry extends Minz_Model { return null; } + /** @return string HTML-encoded link of the entry */ public function link(): string { return $this->link; } @@ -589,10 +590,10 @@ class FreshRSS_Entry extends Minz_Model { $this->content = $entry->content(); } else { try { - // l’article n’est pas en BDD, on va le chercher sur le site + // The article is not yet in the database, so let’s fetch it $fullContent = self::getContentByParsing( htmlspecialchars_decode($this->link(), ENT_QUOTES), - $feed->pathEntries(), + htmlspecialchars_decode($feed->pathEntries(), ENT_QUOTES), $feed->attributes() ); if ('' !== $fullContent) { -- cgit v1.2.3