From b189c9500c3ea5362edfcbf818c2f847b4892da5 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 20 Nov 2009 09:42:19 -0800 Subject: Initial functional version of feed subscription plugin, currently supporting only PuSH-enabled feeds. --- plugins/FeedSub/extlib/xml-feed-parser-bug-16416.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 plugins/FeedSub/extlib/xml-feed-parser-bug-16416.patch (limited to 'plugins/FeedSub/extlib/xml-feed-parser-bug-16416.patch') 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; -- cgit v1.2.3-54-g00ecf