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:
scott%scott-macgregor.org 2005-09-20 22:22:48 +00:00
Родитель b301272962
Коммит c4966a22d7
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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;
}