diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-09-30 22:12:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 22:12:08 +0300 |
commit | 0e22ca25669d146812e2bbfb5edb22c9dc0ecc18 (patch) | |
tree | 6165040d78d7b8b51d43ed16c5b0ed06b5922a17 /tests | |
parent | 2b0de42c11c064a982498dbcd60850ea51549de3 (diff) |
Fix percent symbol fails JavaScript Matomo code (#16469)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/javascript/index.php | 3 |
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'); |