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:
authorThomas Steur <tsteur@users.noreply.github.com>2020-09-30 22:12:08 +0300
committerGitHub <noreply@github.com>2020-09-30 22:12:08 +0300
commit0e22ca25669d146812e2bbfb5edb22c9dc0ecc18 (patch)
tree6165040d78d7b8b51d43ed16c5b0ed06b5922a17 /tests/javascript/index.php
parent2b0de42c11c064a982498dbcd60850ea51549de3 (diff)
Fix percent symbol fails JavaScript Matomo code (#16469)
Diffstat (limited to 'tests/javascript/index.php')
-rw-r--r--tests/javascript/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index 712a953b22..c699107c1e 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -2382,7 +2382,7 @@ function PiwikTest() {
});
test("Tracker getHostName(), *UrlParameter(), urlFixup(), domainFixup(), titleFixup() and purify()", function() {
- expect(80);
+ expect(81);
var tracker = Piwik.getTracker();
@@ -2409,6 +2409,7 @@ function PiwikTest() {
equal( tracker.hook.test._getUrlParameter('http://piwik.org/?q=test', 'q'), 'test', '?q');
equal( tracker.hook.test._getUrlParameter('http://piwik.org/?q=test#aq=not', 'q'), 'test', '?q');
equal( tracker.hook.test._getUrlParameter('http://piwik.org/?p=test1&q=test2', 'q'), 'test2', '&q');
+ equal( tracker.hook.test._getUrlParameter('https://piwik.org/?pk_campaign=qwerty2%25-', 'pk_campaign'), 'qwerty2%-', '&pk_campaign');
// _getUrlParameter in hash tag
equal( tracker.hook.test._getUrlParameter('http://piwik.org/?p=test1&q=test2#aq=not', 'q'), 'test2', '&q');