Merge branch 'master' of KKozlowski/tt-rss into master
This commit is contained in:
commit
2cdef24888
|
@ -1782,7 +1782,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_server_https() {
|
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() {
|
function is_prefix_https() {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
$session_expire = min(2147483647 - time() - 1, max(SESSION_COOKIE_LIFETIME, 86400));
|
$session_expire = min(2147483647 - time() - 1, max(SESSION_COOKIE_LIFETIME, 86400));
|
||||||
$session_name = (!defined('TTRSS_SESSION_NAME')) ? "ttrss_sid" : TTRSS_SESSION_NAME;
|
$session_name = (!defined('TTRSS_SESSION_NAME')) ? "ttrss_sid" : TTRSS_SESSION_NAME;
|
||||||
|
|
||||||
if (@$_SERVER['HTTPS'] == "on") {
|
if ((!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] != 'off')) || @$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
|
||||||
$session_name .= "_ssl";
|
$session_name .= "_ssl";
|
||||||
ini_set("session.cookie_secure", true);
|
ini_set("session.cookie_secure", true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_server_https() {
|
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 make_self_url_path() {
|
function make_self_url_path() {
|
||||||
|
|
Loading…
Reference in New Issue