forked from leftypol/leftypol
Send cookie only via HTTPS if a mod logs in via HTTPS, which is the case on this site
This commit is contained in:
parent
8d745bec26
commit
6716a24b68
2 changed files with 3 additions and 3 deletions
|
@ -150,7 +150,7 @@ function mod_dashboard() {
|
|||
$latest = false;
|
||||
}
|
||||
|
||||
setcookie('update', serialize($latest), time() + $config['check_updates_time'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, true);
|
||||
setcookie('update', serialize($latest), time() + $config['check_updates_time'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, $_SERVER['HTTPS'], true);
|
||||
}
|
||||
|
||||
if ($latest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue