Jeremy Newman : base_url: detect https

Jeremy Newman jnewman at winehq.org
Wed Mar 24 13:13:51 CDT 2021


Module: website
Branch: master
Commit: 8fb5a208ca5b78e43d5a017ae6eb803cabcd70fb
URL:    https://source.winehq.org/git/website.git/?a=commit;h=8fb5a208ca5b78e43d5a017ae6eb803cabcd70fb

Author: Jeremy Newman <jnewman at 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}";




More information about the wine-cvs mailing list