mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 11:09:20 +03:00
Disable Exception for #451
This commit is contained in:
parent
d8b2253351
commit
2a4fbea0a8
1 changed files with 2 additions and 0 deletions
|
|
@ -127,9 +127,11 @@ class Utils
|
|||
// https://github.com/the-djmaze/snappymail/issues/451
|
||||
// The 4K browser limit is for the entire cookie, including name, value, expiry date etc.
|
||||
$iMaxSize = 4000 - \strlen($sPath . $sName);
|
||||
/*
|
||||
if ($iMaxSize < \strlen($sValue)) {
|
||||
throw new \Exception("Cookie '{$sName}' value too long");
|
||||
}
|
||||
*/
|
||||
foreach (\str_split($sValue, $iMaxSize) as $i => $sPart) {
|
||||
\setcookie($i ? "{$sName}~{$i}" : $sName, $sPart, array(
|
||||
'expires' => $iExpire,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue