From add913da27831d2b9a37cc4b936265411c6a7c9d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 12 May 2023 06:06:34 -0400 Subject: [PATCH] Remove misleading concatenation in XPath expression in Protocol\Feed - Variable could be directly interpolated - Address https://github.com/friendica/friendica/issues/13025#issuecomment-1543335001 - Address https://github.com/friendica/friendica/issues/13025#issuecomment-1545074703 --- src/Protocol/Feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index d4eeae61e..fced3526d 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -478,7 +478,7 @@ class Feed $attachments = []; - $enclosures = $xpath->query("enclosure|' . $atomns . ':link[@rel='enclosure']", $entry); + $enclosures = $xpath->query("enclosure|$atomns:link[@rel='enclosure']", $entry); if (!empty($enclosures)) { foreach ($enclosures as $enclosure) { $href = '';