diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-03-29 10:17:03 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-03-29 10:17:03 +0400 |
commit | 4924334424adc8758f9e38f8c357d4f2a6f06766 (patch) | |
tree | 86f13a6b27650755ad11f3cf9913b97ed6122cc1 /core/SettingsPiwik.php | |
parent | 4bb2de047b8da4cad0f84e11029e6de9126eec2d (diff) |
Refs #4926 when loaded over HTTPS, make the sure PiwikUrl is https (even though it may be cached as HTTP)
Diffstat (limited to 'core/SettingsPiwik.php')
-rw-r--r-- | core/SettingsPiwik.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/SettingsPiwik.php b/core/SettingsPiwik.php index 64015a560a..4c8bcaea70 100644 --- a/core/SettingsPiwik.php +++ b/core/SettingsPiwik.php @@ -191,6 +191,10 @@ class SettingsPiwik } $url = $currentUrl; } + + if(ProxyHttp::isHttps()) { + $url = str_replace("http://", "https://", $url); + } return $url; } |