diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-06-03 09:47:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 09:47:44 +0300 |
commit | 7585967cbd80d7869f57a9adc69c02e8d14cbc33 (patch) | |
tree | 7b06afedbcb883175f02ffff141809d001097b64 /plugins/Proxy | |
parent | caf7dbf0fdd3e91a47fa49f297ed18a75ddeff9d (diff) |
Remove code tagged with `@deprecated` (#16001)
* remove some code tagged with deprecated
* some more tweaks
* remove more deprecated methods
* more deprecations
* remove old files
* remove more deprecated methods
* fix some tests
* update logviewer submodule
* fix some tests
* fix ui test
* another deprecation
* Update CHANGELOG.md
Co-authored-by: Stefan Giehl <stefan@matomo.org>
* add test for dimensions provider
Co-authored-by: Stefan Giehl <stefan@matomo.org>
Diffstat (limited to 'plugins/Proxy')
-rw-r--r-- | plugins/Proxy/Controller.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/plugins/Proxy/Controller.php b/plugins/Proxy/Controller.php index 02d3cb6380..b343b9e83f 100644 --- a/plugins/Proxy/Controller.php +++ b/plugins/Proxy/Controller.php @@ -75,39 +75,6 @@ class Controller extends \Piwik\Plugin\Controller } /** - * Output redirection page instead of linking directly to avoid - * exposing the referrer on the Piwik demo. - * - * @internal param string $url (via $_GET) - * @deprecated @since 3.6.0 - */ - public function redirect() - { - $url = Common::getRequestVar('url', '', 'string', $_GET); - if (!UrlHelper::isLookLikeUrl($url)) { - die('Please check the &url= parameter: it should to be a valid URL'); - } - // validate referrer - $referrer = Url::getReferrer(); - if (empty($referrer) || !Url::isLocalUrl($referrer)) { - die('Invalid Referrer detected - This means that your web browser is not sending the "Referrer URL" which is - required to proceed with the redirect. Verify your browser settings and add-ons, to check why your browser - is not sending this referrer. - - <br/><br/>You can access the page at: ' . $url); - } - - // mask visits to *.piwik.org - if (!self::isPiwikUrl($url)) { - Piwik::checkUserHasSomeViewAccess(); - } - Common::sendHeader('Content-Type: text/html; charset=utf-8'); - echo '<html><head><meta http-equiv="refresh" content="0;url=' . $url . '" /></head></html>'; - - exit; - } - - /** * Validate URL against *.piwik.org domains * * @param string $url |