[Pkg-mozext-commits] [sage-extension] 47/49: [15774] properly handle atom:link elements in RSS feeds

David Prévot taffit at moszumanska.debian.org
Fri May 1 03:10:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag sage_1_3_10
in repository sage-extension.

commit 8fa2a8b7b44fd11dd7e78e215cdaddbb765b9c98
Author: Peter Andrews <petea at jhu.edu>
Date:   Fri Nov 17 21:55:18 2006 +0000

    [15774] properly handle atom:link elements in RSS feeds
---
 src/sage/content/feedlib.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/sage/content/feedlib.js b/src/sage/content/feedlib.js
index 1041715..b54c34a 100644
--- a/src/sage/content/feedlib.js
+++ b/src/sage/content/feedlib.js
@@ -73,7 +73,10 @@ Feed.prototype.parseRSS = function() {
 				this.title = entityDecode(CommonFunc.getInnerText(i));
 				break;
 			case "link":
-				this.link = CommonFunc.getInnerText(i);
+				dump("link node: " + i.namespaceURI + "\n");
+				if (i.namespaceURI != "http://www.w3.org/2005/Atom") {
+					this.link = CommonFunc.getInnerText(i);
+				}
 				break;
 			case "description":
 				this.description = entityDecode(CommonFunc.getInnerText(i));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git



More information about the Pkg-mozext-commits mailing list