mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-03 08:06:50 +01:00
This is more error tolerant
This commit is contained in:
@@ -172,5 +172,5 @@ function isHttps(): bool
|
||||
return
|
||||
(!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https')
|
||||
|| (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off')
|
||||
|| $_SERVER['SERVER_PORT'] == 443;
|
||||
|| (isset($_SERVER['SERVER_PORT']) && (int) $_SERVER['SERVER_PORT'] === 443);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user