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>2012-11-21 15:14:48 +0400
committermattpiwik <matthieu.aubry@gmail.com>2012-11-21 15:14:48 +0400
commit0616a0306b3a1e7037143a1bdc73d0428d7dd8af (patch)
tree3ce16e3d0e47ac6a22f52d2949f83c863d674ac9 /plugins/Proxy
parent706f6d647ac56e6d105d2fadf0358dbbc6544158 (diff)
Prevent failing redirect rather than show an error
git-svn-id: http://dev.piwik.org/svn/trunk@7501 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Proxy')
-rw-r--r--plugins/Proxy/Controller.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Proxy/Controller.php b/plugins/Proxy/Controller.php
index 2af91cfa5c..d4cab5d6e3 100644
--- a/plugins/Proxy/Controller.php
+++ b/plugins/Proxy/Controller.php
@@ -139,6 +139,10 @@ class Piwik_Proxy_Controller extends Piwik_Controller
{
Piwik::checkUserHasSomeViewAccess();
}
+ if(!Piwik_Common::isLookLikeUrl($url))
+ {
+ die('Please check the &url= parameter: it should to be a valid URL');
+ }
echo '<html><head><meta http-equiv="refresh" content="0;url=' . $url . '" /></head></html>';