diff --git a/defaults.php b/defaults.php index 9b9e62a8..9bee2b2a 100755 --- a/defaults.php +++ b/defaults.php @@ -188,8 +188,8 @@ function is_https() { } // HTTPS called reverse proxy / load balancer if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || !empty($_SERVER['HTTP_X_FORWARDED_SSL']) && $_SERVER['HTTP_X_FORWARDED_SSL'] == 'on') { - $isSecure = true; + return true; } // none of the above: must be HTTP return false; -} \ No newline at end of file +}