We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e755cd8 commit 24ff0deCopy full SHA for 24ff0de
lib/Saml2/Utils.php
@@ -315,10 +315,9 @@ public static function getSelfHost()
315
*/
316
public static function isHTTPS()
317
{
318
- $isHttps = (!empty($_SERVER['HTTPS'])
319
- && $_SERVER['HTTPS'] !== 'off'
+ $isHttps = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')
320
|| (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443)
321
- );
+ || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https');
322
return $isHttps;
323
}
324
0 commit comments