From 242b7e40536c4c027a3091f27f6a9a915de9a0cf Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 10 Jan 2023 13:46:12 +0100 Subject: [inc/Session] Fix default parameters to setcookie() --- inc/session.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/session.inc.php b/inc/session.inc.php index f2cb1848..1c20c8a6 100644 --- a/inc/session.inc.php +++ b/inc/session.inc.php @@ -160,7 +160,7 @@ class Session if ($cookie) { self::$updateSessionDateline = true; $ret = setcookie('sid', self::$sid, time() + CONFIG_SESSION_TIMEOUT, - null, null, !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off', true); + '', '', !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off', true); if (!$ret) ErrorHandler::traceError('Error: Could not set Cookie for Client (headers already sent)'); } -- cgit v1.2.3-55-g7522