зеркало из https://github.com/mozilla/pjs.git
Bug #306997 --> this rss feed cannot be added to thunderbird. Change the way we normalize uri's before they
go into our cache. Patch by Robert Sayre.
This commit is contained in:
Родитель
b301272962
Коммит
c4966a22d7
|
@ -66,9 +66,9 @@ var FeedCache =
|
|||
|
||||
normalizeHost: function (aUrl)
|
||||
{
|
||||
normalizedUrl = Components.classes["@mozilla.org/network/standard-url;1"].
|
||||
createInstance(Components.interfaces.nsIURI);
|
||||
normalizedUrl.spec = aUrl;
|
||||
var ioService = Components.classes["@mozilla.org/network/io-service;1"].
|
||||
createInstance(Components.interfaces.nsIIOService);
|
||||
var normalizedUrl = ioService.newURI(aUrl, null, null);
|
||||
normalizedUrl.host = normalizedUrl.host.toLowerCase();
|
||||
return normalizedUrl.spec;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче