Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-04-08 04:16:41 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-04-08 04:16:41 +0400
commit568b1aa7125a8ca1e0ebafeb011b6c08cf983de4 (patch)
treed7755a628627e7995345f07af663dbe034f9296d /plugins/SitesManager
parent84c2476aa98cb304611f263320af251bc2a8f336 (diff)
refs #1276 - fix regression introduced by [2045] where alias URLs no longer accepted
Diffstat (limited to 'plugins/SitesManager')
-rw-r--r--plugins/SitesManager/templates/SitesManager.js8
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)
{