summaryrefslogtreecommitdiff
path: root/plugins/FeedSub/extlib/xml-feed-parser-bug-16416.patch
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-11-19 21:05:31 -0800
committerBrion Vibber <brion@pobox.com>2009-11-19 21:05:31 -0800
commit512445e641b696962a9d5fb2de4147270545a13a (patch)
tree89eae38f77e74b51478cc2ec0c13a0ac249d75ba /plugins/FeedSub/extlib/xml-feed-parser-bug-16416.patch
parent584b17a8185bc4f2b501e94b1e3c942234f0d646 (diff)
parentdd36c2de23dbdb30f333be1f9d5292d62363b0c8 (diff)
Merge branch 'feed-integration' into 0.9.x
Diffstat (limited to 'plugins/FeedSub/extlib/xml-feed-parser-bug-16416.patch')
-rw-r--r--plugins/FeedSub/extlib/xml-feed-parser-bug-16416.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/FeedSub/extlib/xml-feed-parser-bug-16416.patch b/plugins/FeedSub/extlib/xml-feed-parser-bug-16416.patch
new file mode 100644
index 000000000..c53bd9737
--- /dev/null
+++ b/plugins/FeedSub/extlib/xml-feed-parser-bug-16416.patch
@@ -0,0 +1,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;