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:
authormattpiwik <matthieu.aubry@gmail.com>2011-03-29 22:29:13 +0400
committermattpiwik <matthieu.aubry@gmail.com>2011-03-29 22:29:13 +0400
commit1cafaa4e71217bf1761202bea2f04873a93ede2e (patch)
treeba6f67c903f2dff4c6499a50ad0f3ef015f0fe46 /plugins/Proxy
parent9a83b86a9c58bbfafd65a20e27d5441b559e14cc (diff)
Clarifying that Referer must be set + linking login form error to the related FAQ
git-svn-id: http://dev.piwik.org/svn/trunk@4232 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Proxy')
-rw-r--r--plugins/Proxy/Controller.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Proxy/Controller.php b/plugins/Proxy/Controller.php
index 8996c26c8f..bde3a03bee 100644
--- a/plugins/Proxy/Controller.php
+++ b/plugins/Proxy/Controller.php
@@ -115,15 +115,16 @@ class Piwik_Proxy_Controller extends Piwik_Controller
*/
public function redirect()
{
+ $url = Piwik_Common::getRequestVar('url', '', 'string', $_GET);
+
// validate referrer
$referrer = Piwik_Url::getReferer();
if(!empty($referrer) && (Piwik_Url::getLocalReferer() === false))
{
+ die('Invalid Referer detected - check that your browser sends the Referer header. <br/>The link you would have been redirected to is: '.$url);
exit;
}
- $url = Piwik_Common::getRequestVar('url', '', 'string', $_GET);
-
// mask visits to *.piwik.org
if(self::isPiwikUrl($url))
{