Skip to content
Snippets Groups Projects
Commit 7dd87de1 authored by ezero's avatar ezero
Browse files

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.
parent b1c266f9
No related branches found
No related tags found
No related merge requests found
......@@ -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']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment