Bug #260561 --> RSS feeds don't get added if URL contains trailing whitespace
git-svn-id: svn://10.0.0.236/trunk@165149 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
bf2c6f83df
commit
bef3aca0ee
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user