From: Hypolite Petovan Date: Fri, 12 May 2023 10:06:34 +0000 (-0400) Subject: Remove misleading concatenation in XPath expression in Protocol\Feed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=add913da27831d2b9a37cc4b936265411c6a7c9d;p=friendica.git 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 --- diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index d4eeae61e7..fced3526d4 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 = '';