Update main.inc.php

This commit is contained in:
Laurent Destailleur 2022-04-14 22:43:43 +02:00 committed by GitHub
parent 29a4e7c725
commit 06f112d3ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,7 +265,7 @@ if (!empty($_POST["DOL_AUTOSET_COOKIE"])) {
$cookiearrayvalue[$tmpkey] = $_POST[$postkey];
}
}
$cookiename = ((empty($dolibarr_main_force_https) && isHTTPS() === false) ? $tmpautoset[0] : '__Secure-'.$tmpautoset[0]); // __Secure- || __Host-
$cookiename = $tmpautoset[0];
$cookievalue = json_encode($cookiearrayvalue);
//var_dump('setcookie cookiename='.$cookiename.' cookievalue='.$cookievalue);
if (PHP_VERSION_ID < 70300) {