mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Bugfix: setcookie() samesite missing
This commit is contained in:
parent
1d4224d733
commit
35c9f3fff5
1 changed files with 8 additions and 1 deletions
|
|
@ -387,7 +387,14 @@ class Utils
|
||||||
}
|
}
|
||||||
|
|
||||||
static::$Cookies[$sName] = $sValue;
|
static::$Cookies[$sName] = $sValue;
|
||||||
\setcookie($sName, $sValue, $iExpire, $sPath, $sDomain, $bSecure, $bHttpOnly);
|
\setcookie($sName, $sValue, array(
|
||||||
|
'expires' => $iExpire,
|
||||||
|
'path' => $sPath,
|
||||||
|
'domain' => $sDomain,
|
||||||
|
'secure' => $bSecure,
|
||||||
|
'httponly' => $bHttpOnly,
|
||||||
|
'samesite' => 'Strict'
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function ClearCookie(string $sName)
|
public static function ClearCookie(string $sName)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue