diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-04-08 04:16:41 +0400 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-04-08 04:16:41 +0400 |
commit | 568b1aa7125a8ca1e0ebafeb011b6c08cf983de4 (patch) | |
tree | d7755a628627e7995345f07af663dbe034f9296d /plugins/SitesManager/templates | |
parent | 84c2476aa98cb304611f263320af251bc2a8f336 (diff) |
refs #1276 - fix regression introduced by [2045] where alias URLs no longer accepted
Diffstat (limited to 'plugins/SitesManager/templates')
-rw-r--r-- | plugins/SitesManager/templates/SitesManager.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/SitesManager/templates/SitesManager.js b/plugins/SitesManager/templates/SitesManager.js index 99a36ecea9..179694e987 100644 --- a/plugins/SitesManager/templates/SitesManager.js +++ b/plugins/SitesManager/templates/SitesManager.js @@ -21,7 +21,7 @@ function getAddSiteAJAX( row ) var parameters = {}; var siteName = $(row).find('input#name').val(); var urls = $(row).find('textarea#urls').val(); - var urls = getApiFormatUrls(urls); + urls = getApiFormatUrls(urls); var excludedIps = $(row).find('textarea#excludedIps').val(); excludedIps = getApiFormatTextarea(excludedIps); var timezone = encodeURIComponent($(row).find('#timezones option:selected').val()); @@ -49,7 +49,11 @@ function getAddSiteAJAX( row ) function getApiFormatUrls(urls) { - return encodeURIComponent(urls.trim()).split("\n"); + var aUrls = urls.trim().split("\n"); + for(var i=0; i < aUrls.length; i++) { + aUrls[i] = encodeURIComponent(aUrls[i]); + } + return aUrls; } function getApiFormatTextarea(textareaContent) { |