Bug 1440693 - fix setting of host (take 2, typo fix). r=me DONTBUILD
authorJorg K <jorgk@jorgk.com>
Sun, 04 Mar 2018 19:06:31 +0100
changeset 31219 7efbdc19de35e4453197a7707c2e6007a0d5cf0b
parent 31218 0dc12c51c93ef013811d6b4daaf63fef3ce2fa3a
child 31220 e548615c045153b86a9ee4ec171e17aecaca6688
push id383
push userclokep@gmail.com
push dateMon, 07 May 2018 21:52:48 +0000
reviewersme
bugs1440693
Bug 1440693 - fix setting of host (take 2, typo fix). r=me DONTBUILD
mailnews/extensions/newsblog/content/Feed.js
--- a/mailnews/extensions/newsblog/content/Feed.js
+++ b/mailnews/extensions/newsblog/content/Feed.js
@@ -31,17 +31,17 @@ var FeedCache =
       delete this.mFeeds[index];
   },
 
   normalizeHost: function (aUrl)
   {
     try
     {
       let normalizedUrl = Services.io.newURI(aUrl);
-      let newHost = host.toLowerCase();
+      let newHost = normalizedUrl.host.toLowerCase();
       normalizedUrl = normalizedUrl.mutate().setHost(newHost).finalize();
       return normalizedUrl.spec
     }
     catch (ex)
     {
       return aUrl;
     }
   }