mirror of https://github.com/FreshRSS/FreshRSS.git
Fix CSS selector encoding (#6426)
fix https://github.com/FreshRSS/FreshRSS/issues/6229 fix https://github.com/FreshRSS/FreshRSS/issues/6266#issuecomment-2090432818
This commit is contained in:
parent
0e6f56bb4c
commit
44625eed25
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue