From 7dd87de192bcc60db880889927e18bd710fe134d Mon Sep 17 00:00:00 2001 From: ezero <shoaibali@users.noreply.github.com> Date: Tue, 15 Sep 2015 21:42:12 +1200 Subject: [PATCH] MINOR: When using HTTP protocol the $_SERVER['HTTPS'] is not set. Checking for $_SERVER['HTTPS'] to be set, as it wasn't set when accessing simplesamlphp using HTTP protocol. This just gives a notice type error. --- www/admin/hostnames.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/admin/hostnames.php b/www/admin/hostnames.php index da7b09bd7..a5462082d 100644 --- a/www/admin/hostnames.php +++ b/www/admin/hostnames.php @@ -12,7 +12,7 @@ SimpleSAML\Utils\Auth::requireAdmin(); $attributes = array(); $attributes['HTTP_HOST'] = array($_SERVER['HTTP_HOST']); -$attributes['HTTPS'] = array($_SERVER['HTTPS']); +$attributes['HTTPS'] = isset($_SERVER['HTTPS'])? array($_SERVER['HTTPS']) : array(); $attributes['SERVER_PROTOCOL'] = array($_SERVER['SERVER_PROTOCOL']); $attributes['SERVER_PORT'] = array($_SERVER['SERVER_PORT']); -- GitLab