Module: website Branch: master Commit: 8fb5a208ca5b78e43d5a017ae6eb803cabcd70fb URL: https://source.winehq.org/git/website.git/?a=commit;h=8fb5a208ca5b78e43d5a01...
Author: Jeremy Newman jnewman@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://%7B$url_domain%7D%7B$this-%3E_web_root%7D"; else return "http://%7B$url_domain%7D%7B$this-%3E_web_root%7D";