From 16bd8278a412b1524ee16d6ddb55d246a9e7ed1b Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Tue, 9 Aug 2016 16:44:30 +0200 Subject: [PATCH] =?UTF-8?q?[fix]=C2=A0allow=20HTTPS=20on=20any=20panel=20(?= =?UTF-8?q?you'd=20better=20use=20letsencrypt=20then,=20but=20that's=20a?= =?UTF-8?q?=20valid=20choice.=20Fixes=20#106?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/class/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/config.php b/bureau/class/config.php index 75a0227f..288f3821 100755 --- a/bureau/class/config.php +++ b/bureau/class/config.php @@ -173,7 +173,7 @@ if ((variable_get('force_https', '0', "This variable is set to 0 (default) if us ||(isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on" && $host != $L_FQDN)) { // do not redirect if access is not by HTTP(s) if (isset($_SERVER['REQUEST_URI'])) { - header("Location: https://$L_FQDN".$_SERVER['REQUEST_URI']); + header("Location: https://".$_SERVER["HTTP_HOST"].$_SERVER['REQUEST_URI']); exit; } }