Bug #260837 --> RSS feeds using SSL are erroneously reported as invalid

Support http and https URLS for RSS.

Effects Thunderbird only.

sr=bienvenu
This commit is contained in:
scott%scott-macgregor.org 2004-11-19 03:50:25 +00:00
parent fa8a4835aa
commit 3388ce9f3a
2 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ Feed.prototype.download = function(parseItems, aCallback) {
var uri = Components.classes["@mozilla.org/network/standard-url;1"].
createInstance(Components.interfaces.nsIURI);
uri.spec = this.url;
if (!uri.schemeIs("http"))
if (!(uri.schemeIs("http") || uri.schemeIs("https")))
return this.onParseError(this); // simulate an invalid feed error
this.request = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]

View File

@ -160,7 +160,7 @@ function CanDropOnFolderTree(index, orientation)
var url = sourceUri.split("\n")[0];
uri.spec = url;
if (uri.schemeIs("http") && targetServer && targetServer.type == 'rss')
if ( (uri.schemeIs("http") || uri.schemeIs("https")) && targetServer && targetServer.type == 'rss')
return true;
}
}
@ -274,7 +274,7 @@ function DropOnFolderTree(row, orientation)
var url = sourceUri.split("\n")[0];
uri.spec = url;
if (uri.schemeIs("http") && targetServer && targetServer.type == 'rss')
if ( (uri.schemeIs("http") || uri.schemeIs("https")) && targetServer && targetServer.type == 'rss')
{
var rssService = Components.classes["@mozilla.org/newsblog-feed-downloader;1"].getService().
QueryInterface(Components.interfaces.nsINewsBlogFeedDownloader);