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:
authormattab <matthieu.aubry@gmail.com>2014-09-30 08:22:45 +0400
committermattab <matthieu.aubry@gmail.com>2014-09-30 08:22:45 +0400
commited55938242c7b3833f28a13e7163fb6437f2f5af (patch)
treeef17e9287b1e0131e1c38cd2fcef206cf65a628f /misc/proxy-hide-piwik-url
parent0acf447a16d8b667d0f370b02448fa361380b26c (diff)
when using custom parameters, url encode the param name to build a correct url
Diffstat (limited to 'misc/proxy-hide-piwik-url')
-rw-r--r--misc/proxy-hide-piwik-url/piwik.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/proxy-hide-piwik-url/piwik.php b/misc/proxy-hide-piwik-url/piwik.php
index 80721cd6ea..d1c9e9ca3c 100644
--- a/misc/proxy-hide-piwik-url/piwik.php
+++ b/misc/proxy-hide-piwik-url/piwik.php
@@ -76,7 +76,7 @@ if (empty($_GET)) {
$url = sprintf("%spiwik.php?cip=%s&token_auth=%s&", $PIWIK_URL, getVisitIp(), $TOKEN_AUTH);
foreach ($_GET as $key => $value) {
- $url .= $key . '=' . urlencode($value) . '&';
+ $url .= urlencode($key ). '=' . urlencode($value) . '&';
}
sendHeader("Content-Type: image/gif");
$stream_options = array('http' => array(