diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-02-19 05:01:57 +0400 |
---|---|---|
committer | Fabian Becker <halfdan@xnorfz.de> | 2013-02-20 04:51:35 +0400 |
commit | d0b384bc02fdf33610136b8fa4b0a00dd54a19bb (patch) | |
tree | e4952e67d70245515085d22c8bd60b0dacdca3a8 /misc | |
parent | 518a1f1e12e7ed6336fe8b42e4ab90c1751e5277 (diff) |
Fixing bug accept language reported in; http://forum.piwik.org/read.php?2,100902
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 228ea9125c..a0ddca4555 100644 --- a/misc/proxy-hide-piwik-url/piwik.php +++ b/misc/proxy-hide-piwik-url/piwik.php @@ -109,7 +109,7 @@ foreach($_GET as $key=>$value) { header("Content-Type: image/gif"); $stream_options = array('http' => array( 'user_agent' => @$_SERVER['HTTP_USER_AGENT'], - 'header' => "Accept-Language: " . @str_replace("\n","\t","\r", "", $_SERVER['HTTP_ACCEPT_LANGUAGE']) . "\r\n" , + 'header' => "Accept-Language: " . @str_replace(array("\n","\t","\r"), "", $_SERVER['HTTP_ACCEPT_LANGUAGE']) . "\r\n" , 'timeout' => $timeout )); $ctx = stream_context_create($stream_options); |