Jeremy Newman : base_url: detect https
Module: website Branch: master Commit: 8fb5a208ca5b78e43d5a017ae6eb803cabcd70fb URL: https://source.winehq.org/git/website.git/?a=commit;h=8fb5a208ca5b78e43d5a01... Author: Jeremy Newman <jnewman(a)codeweavers.com> Date: Wed Mar 24 13:12:12 2021 -0500 base_url: detect https --- include/html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/html.php b/include/html.php index eb65ed4f..ca744580 100644 --- a/include/html.php +++ b/include/html.php @@ -257,7 +257,7 @@ class html } // return constructed URL - if (!empty($GLOBALS['config']->use_https)) + if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') return "https://{$url_domain}{$this->_web_root}"; else return "http://{$url_domain}{$this->_web_root}";
participants (1)
-
Jeremy Newman