mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
This is more error tolerant
This commit is contained in:
parent
7dd9b7764a
commit
9d119b6279
@ -172,5 +172,5 @@ function isHttps(): bool
|
|||||||
return
|
return
|
||||||
(!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https')
|
(!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https')
|
||||||
|| (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')
|
|| (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')
|
||||||
|| $_SERVER['SERVER_PORT'] == 443;
|
|| (isset($_SERVER['SERVER_PORT']) && (int) $_SERVER['SERVER_PORT'] === 443);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user