[Pkg-mozext-commits] [sage-extension] 15/54: feed discovery fixes, bug: 7087

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


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

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

commit 72b05c1b714277d89a295d0990326e57f4a78a86
Author: Peter Andrews <petea at jhu.edu>
Date:   Mon Sep 20 05:46:47 2004 +0000

    feed discovery fixes, bug: 7087
---
 src/sage/content/discover_feeds.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sage/content/discover_feeds.js b/src/sage/content/discover_feeds.js
index c7eb618..392287a 100644
--- a/src/sage/content/discover_feeds.js
+++ b/src/sage/content/discover_feeds.js
@@ -65,7 +65,7 @@ function init() {
 	if(discoveryMode == "exhaustive") {
 		links = current_document.getElementsByTagName("a");
 		for(c = 0; c < links.length; c++) {
-			if(uriSchemeRe.test(links[c].protocol) && links[c].href.test(/xml$|rss|rdf|atom|feed/i)) {
+			if(uriSchemeRe.test(links[c].protocol) && links[c].href.match(/xml$|rss|rdf|atom|feed|syndicate/i)) {
 				possibleFeeds[links[c].href] = Array(links[c].href, "implicit");
 			}
 		}
@@ -73,8 +73,8 @@ function init() {
 		links = current_document.getElementsByTagName("a");
 		for(c = 0; c < links.length; c++) {
 			if(uriSchemeRe.test(links[c].protocol) &&
-			   links[c].href.test(/xml$|rss|rdf|atom|feed/i) &&
-			   links[c].host.test(new RegExp(document_host, "i"))) {
+			   links[c].href.match(/xml$|rss|rdf|atom|feed|syndicate/i) &&
+			   links[c].host.match(new RegExp(document_host, "i"))) {
 				possibleFeeds[links[c].href] = Array(links[c].href, "implicit");
 			}
 		}

-- 
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