diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-09-30 08:22:45 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-09-30 08:22:45 +0400 |
commit | ed55938242c7b3833f28a13e7163fb6437f2f5af (patch) | |
tree | ef17e9287b1e0131e1c38cd2fcef206cf65a628f /misc | |
parent | 0acf447a16d8b667d0f370b02448fa361380b26c (diff) |
when using custom parameters, url encode the param name to build a correct url
Diffstat (limited to 'misc')
-rw-r--r-- | misc/proxy-hide-piwik-url/piwik.php | 2 |
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( |