mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 23:17:02 +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
|
// https://github.com/the-djmaze/snappymail/issues/451
|
||||||
// The 4K browser limit is for the entire cookie, including name, value, expiry date etc.
|
// The 4K browser limit is for the entire cookie, including name, value, expiry date etc.
|
||||||
$iMaxSize = 4000 - \strlen($sPath . $sName);
|
$iMaxSize = 4000 - \strlen($sPath . $sName);
|
||||||
|
/*
|
||||||
if ($iMaxSize < \strlen($sValue)) {
|
if ($iMaxSize < \strlen($sValue)) {
|
||||||
throw new \Exception("Cookie '{$sName}' value too long");
|
throw new \Exception("Cookie '{$sName}' value too long");
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
foreach (\str_split($sValue, $iMaxSize) as $i => $sPart) {
|
foreach (\str_split($sValue, $iMaxSize) as $i => $sPart) {
|
||||||
\setcookie($i ? "{$sName}~{$i}" : $sName, $sPart, array(
|
\setcookie($i ? "{$sName}~{$i}" : $sName, $sPart, array(
|
||||||
'expires' => $iExpire,
|
'expires' => $iExpire,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue