summaryrefslogtreecommitdiff
path: root/plugins/FeedSub/extlib/xml-feed-parser-bug-16416.patch
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-01 12:11:05 -0500
committerEvan Prodromou <evan@status.net>2009-12-01 12:11:05 -0500
commit42da45d3bc3cd0caa34f8d9f34c5617fedbb755e (patch)
tree4bb8483ad921fd1c03b0f4043d541dff1a812d50 /plugins/FeedSub/extlib/xml-feed-parser-bug-16416.patch
parent11d9c1955c9a7d65cb3dc76098abd3e4350d2685 (diff)
parent234e6a10b1b95b271bacd11687e1dcb168712147 (diff)
Merge branch 'master' of git@gitorious.org:statusnet/mainline
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;