From 44625eed25f4f5cfba3ebcb4fe66c91442609eff Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 2 May 2024 19:49:18 +0200 Subject: Fix CSS selector encoding (#6426) fix https://github.com/FreshRSS/FreshRSS/issues/6229 fix https://github.com/FreshRSS/FreshRSS/issues/6266#issuecomment-2090432818 --- app/Models/Entry.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Models') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 6e59c063a..10b37aa94 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -748,7 +748,8 @@ HTML; } $content = ''; - $nodes = $xpath->query((new Gt\CssXPath\Translator($feed->pathEntries()))->asXPath()); + $cssSelector = htmlspecialchars_decode($feed->pathEntries(), ENT_QUOTES); + $nodes = $xpath->query((new Gt\CssXPath\Translator($cssSelector))->asXPath()); if ($nodes != false) { $path_entries_filter = $feed->attributeString('path_entries_filter'); foreach ($nodes as $node) { -- cgit v1.2.3