diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-09-14 07:36:12 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-09-14 07:36:12 +0400 |
commit | 8c1f92be4291f1d76935ed34de88f5168faec88a (patch) | |
tree | a4fdadf26601374c364bb69cd1e42879775a0487 /plugins/Proxy | |
parent | 4fbe9960f50068a1ddc46c2780839999d7fea85e (diff) |
Adding UrlHelper containing random logic around manipulating urls
Diffstat (limited to 'plugins/Proxy')
-rw-r--r-- | plugins/Proxy/Controller.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Proxy/Controller.php b/plugins/Proxy/Controller.php index 0e514d692e..f7e29362b2 100644 --- a/plugins/Proxy/Controller.php +++ b/plugins/Proxy/Controller.php @@ -15,6 +15,7 @@ use Piwik\Common; use Piwik\Piwik; use Piwik\ProxyHttp; use Piwik\Url; +use Piwik\UrlHelper; /** * Controller for proxy services @@ -92,7 +93,7 @@ class Controller extends \Piwik\Controller if (!self::isPiwikUrl($url)) { Piwik::checkUserHasSomeViewAccess(); } - if (!Common::isLookLikeUrl($url)) { + if (!UrlHelper::isLookLikeUrl($url)) { die('Please check the &url= parameter: it should to be a valid URL'); } @header('Content-Type: text/html; charset=utf-8'); |