From fd945ffb9314f3613a96cfe3aa4fbc389b702d7a Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 2 Mar 2022 17:44:52 +0100 Subject: Fix XPath context for tags (#4246) #fix https://github.com/FreshRSS/FreshRSS/issues/4245 Follow-up of https://github.com/FreshRSS/FreshRSS/pull/4220 --- app/Models/Feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models/Feed.php') diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 0e02194ef..934036845 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -605,7 +605,7 @@ class FreshRSS_Feed extends Minz_Model { $item['timestamp'] = $xPathItemTimestamp == '' ? '' : @$xpath->evaluate('normalize-space(' . $xPathItemTimestamp . ')', $node); $item['thumbnail'] = $xPathItemThumbnail == '' ? '' : @$xpath->evaluate('normalize-space(' . $xPathItemThumbnail . ')', $node); if ($xPathItemCategories != '') { - $itemCategories = @$xpath->query($xPathItemCategories); + $itemCategories = @$xpath->query($xPathItemCategories, $node); if ($itemCategories) { foreach ($itemCategories as $itemCategory) { $item['categories'][] = $itemCategory->textContent; -- cgit v1.2.3