aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-05-02 19:49:18 +0200
committerGravatar GitHub <noreply@github.com> 2024-05-02 19:49:18 +0200
commit44625eed25f4f5cfba3ebcb4fe66c91442609eff (patch)
tree9c6cafb5583f56a77221e1be7fa706963cc802fb /app/Models/Entry.php
parent0e6f56bb4c0e749f632f9537bfb0abdbb0f2a078 (diff)
Fix CSS selector encoding (#6426)
fix https://github.com/FreshRSS/FreshRSS/issues/6229 fix https://github.com/FreshRSS/FreshRSS/issues/6266#issuecomment-2090432818
Diffstat (limited to 'app/Models/Entry.php')
-rw-r--r--app/Models/Entry.php3
1 files changed, 2 insertions, 1 deletions
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) {