summaryrefslogtreecommitdiff
path: root/plugins/OStatus/extlib/xml-feed-parser-bug-16416.patch
blob: c53bd973740f4c447ab7e0830f6bc3d4be60eeda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/htdocs/lib/pear/XML/Feed/Parser/RSS2.php b/htdocs/lib/pear/XML/Feed/Parser/RSS2.php
index c5d79d1..308a4ab 100644
--- a/htdocs/lib/pear/XML/Feed/Parser/RSS2.php
+++ b/htdocs/lib/pear/XML/Feed/Parser/RSS2.php
@@ -321,7 +321,8 @@ class XML_Feed_Parser_RSS2 extends XML_Feed_Parser_Type
      */
     function getLink($offset, $attribute = 'href', $params = array())
     {
-        $links = $this->model->getElementsByTagName('link');
+        $xPath = new DOMXPath($this->model);
+        $links = $xPath->query('//link');
 
         if ($links->length <= $offset) {
             return false;