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:
Diffstat (limited to 'plugins/Login/Controller.php')
-rw-r--r--plugins/Login/Controller.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/Login/Controller.php b/plugins/Login/Controller.php
index d69d3a6cbc..e8bfb610ff 100644
--- a/plugins/Login/Controller.php
+++ b/plugins/Login/Controller.php
@@ -406,9 +406,7 @@ class Piwik_Login_Controller extends Piwik_Controller
$forceSslLogin = Zend_Registry::get('config')->General->force_ssl_login;
if($forceSslLogin)
{
- $reverseProxy = Zend_Registry::get('config')->General->reverse_proxy;
- if(Piwik_Url::getCurrentScheme() != 'https'
- && !$reverseProxy)
+ if(!Piwik::isHttps())
{
$url = 'https://'
. Piwik_Url::getCurrentHost()