mirror of
https://github.com/itflow-org/itflow
synced 2026-03-11 08:14:52 +00:00
Small change re https
This commit is contained in:
@@ -368,12 +368,13 @@ function generateUserSessionKey($site_encryption_master_key){
|
|||||||
$_SESSION['user_encryption_session_iv'] = $user_encryption_session_iv;
|
$_SESSION['user_encryption_session_iv'] = $user_encryption_session_iv;
|
||||||
|
|
||||||
//Give the user "their" key as a cookie
|
//Give the user "their" key as a cookie
|
||||||
|
//By default, this should be HTTPS but we can change to HTTP for development via the config.php file
|
||||||
if($config_https_only){
|
if($config_https_only){
|
||||||
setcookie("user_encryption_session_key", $user_encryption_session_key, 0, "/", "", "true", "true");
|
setcookie("user_encryption_session_key", $user_encryption_session_key, 0, "/", "", "true", "true");
|
||||||
}
|
}
|
||||||
else {
|
else{
|
||||||
// No secure flag
|
setcookie("user_encryption_session_key", $user_encryption_session_key, 0, "/");
|
||||||
setcookie("user_encryption_session_key", $user_encryption_session_key, 0, "/", "", "false", "true");
|
$_SESSION['alert_message'] = "Unencrypted connection: Using HTTP only.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user