1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:35:57 +00:00

$_SERVER['HTTPS'] can be exists and 'off' for non-https connectios

This commit is contained in:
Natan Frei
2017-07-17 00:44:48 +03:00
parent 9fa3ae09a6
commit e234ac8dcb
3 changed files with 3 additions and 3 deletions

View File

@@ -1782,7 +1782,7 @@
}
function is_server_https() {
return $_SERVER['HTTPS'] == 'on' || $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https';
return (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != 'off')) || $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https';
}
function is_prefix_https() {