diff options
| author | czaks <marcin@6irc.net> | 2014-06-12 03:12:56 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-06-12 03:12:56 +0200 |
| commit | 427a9938a7fbc43fb515379764d2978d0781ee47 (patch) | |
| tree | 57dc253f4c5a5fa34785e4c7d0f6a3c394bebafb /inc/mod/auth.php | |
| parent | 030895d074fb070f4482465c17529c5452ee26ae (diff) | |
| parent | 7933abd271b5bb3578cd80f62302cc6ac8961b91 (diff) | |
Merge 4.5
Diffstat (limited to 'inc/mod/auth.php')
| -rw-r--r-- | inc/mod/auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/mod/auth.php b/inc/mod/auth.php index 182f3ee2..01ed5b68 100644 --- a/inc/mod/auth.php +++ b/inc/mod/auth.php @@ -69,13 +69,13 @@ function setCookies() { $mod['hash'][0] . // password ':' . $mod['hash'][1], // salt - time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'], $config['cookies']['httponly']); + time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off', $config['cookies']['httponly']); } function destroyCookies() { global $config; // Delete the cookies - setcookie($config['cookies']['mod'], 'deleted', time() - $config['cookies']['expire'], $config['cookies']['jail']?$config['cookies']['path'] : '/', null, isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'], true); + setcookie($config['cookies']['mod'], 'deleted', time() - $config['cookies']['expire'], $config['cookies']['jail']?$config['cookies']['path'] : '/', null, !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off', true); } function modLog($action, $_board=null) { |
