diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-02-16 05:44:10 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-02-16 05:44:10 +0300 |
commit | 83e166738f0649c2ecb7a36b75a8d2a87b57f102 (patch) | |
tree | 3de036031b6933926207e8ea5abafcec8a4eddac /js | |
parent | a00441220d48d7de88e4072950d8088a323e91bb (diff) |
refs #7220 fixes #7218 refs #4633 prevent double url encoded url and referrer.
location.href and top.document.referer are both already URL encoded.
To prevent double encoding we need to decode them.
Diffstat (limited to 'js')
-rw-r--r-- | js/piwik.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/piwik.js b/js/piwik.js index 6c702143c5..1ed6ca8e22 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -2131,8 +2131,8 @@ if (typeof Piwik !== 'object') { // Current URL and Referrer URL locationArray = urlFixup(documentAlias.domain, windowAlias.location.href, getReferrer()), domainAlias = domainFixup(locationArray[0]), - locationHrefAlias = locationArray[1], - configReferrerUrl = locationArray[2], + locationHrefAlias = decodeWrapper(locationArray[1]), + configReferrerUrl = decodeWrapper(locationArray[2]), enableJSErrorTracking = false, |