Fix: $domain for setcookie() must be string
This commit is contained in:
parent
705296217c
commit
882533da0d
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ if (!empty($_POST["DOL_AUTOSET_COOKIE"])) {
|
|||
$cookievalue = json_encode($cookiearrayvalue);
|
||||
//var_dump('setcookie cookiename='.$cookiename.' cookievalue='.$cookievalue);
|
||||
if (PHP_VERSION_ID < 70300) {
|
||||
setcookie($cookiename, empty($cookievalue) ? '' : $cookievalue, empty($cookievalue) ? 0 : (time() + (86400 * 354)), '/', null, ((empty($dolibarr_main_force_https) && isHTTPS() === false) ? false : true), true); // keep cookie 1 year and add tag httponly
|
||||
setcookie($cookiename, empty($cookievalue) ? '' : $cookievalue, empty($cookievalue) ? 0 : (time() + (86400 * 354)), '/', '', ((empty($dolibarr_main_force_https) && isHTTPS() === false) ? false : true), true); // keep cookie 1 year and add tag httponly
|
||||
} else {
|
||||
// Only available for php >= 7.3
|
||||
$cookieparams = array(
|
||||
|
|
|
|||
Loading…
Reference in a new issue