diff --git a/mozilla/mail/extensions/newsblog/content/feed-properties.js b/mozilla/mail/extensions/newsblog/content/feed-properties.js index 92152454dbd..15a107ebbaf 100644 --- a/mozilla/mail/extensions/newsblog/content/feed-properties.js +++ b/mozilla/mail/extensions/newsblog/content/feed-properties.js @@ -54,7 +54,11 @@ function onLoad() function onOk() { - window.arguments[0].feedLocation = document.getElementById('feedLocation').value; + var feedLocation = document.getElementById('feedLocation').value; + // trim leading and trailing white space from the url + feedLocation = feedLocation.replace( /^\s+/, "").replace( /\s+$/, ""); + + window.arguments[0].feedLocation = feedLocation; window.arguments[0].folderURI = document.getElementById('selectFolder').value; window.arguments[0].quickMode = document.getElementById('quickMode').checked; window.arguments[0].result = true;