From bcca426782b8fa5c0b34381bf8219fc49205305d Mon Sep 17 00:00:00 2001 From: dev <andr.wuttig@gmail.com> Date: Thu, 19 Jan 2017 10:57:18 +0100 Subject: [PATCH] * fixes problem with empty HTTPS element in $_SERVER global in getServerHTTPS() method --- lib/SimpleSAML/Utils/HTTP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SimpleSAML/Utils/HTTP.php b/lib/SimpleSAML/Utils/HTTP.php index 1acdea672..d49b553b1 100644 --- a/lib/SimpleSAML/Utils/HTTP.php +++ b/lib/SimpleSAML/Utils/HTTP.php @@ -85,8 +85,8 @@ class HTTP return false; } - // otherwise, HTTPS will be a non-empty string - return $_SERVER['HTTPS'] !== ''; + // otherwise, HTTPS will be non-empty + return !empty($_SERVER['HTTPS']); } -- GitLab