summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/feedController.php1
-rw-r--r--app/Models/Entry.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index 714a18ffe..43248cce9 100644
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -1148,6 +1148,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
return;
}
$feed->_pathEntries($content_selector);
+ $feed->_attribute('path_entries_filter', Minz_Request::paramString('selector_filter', true));
//Fetch & select content.
try {
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) {