Compare commits
No commits in common. "master" and "v1.0.0" have entirely different histories.
@ -5,7 +5,7 @@ namespace Storage;
|
||||
class Cookie {
|
||||
|
||||
public array $options = [
|
||||
'expires' => (60*60*8), # Default to 8 hours now
|
||||
'expires' => 0,
|
||||
'path' => null,
|
||||
'domain' => null,
|
||||
'secure' => false,
|
||||
@ -49,7 +49,7 @@ class Cookie {
|
||||
|
||||
$key = $this->normalizeKey($key);
|
||||
|
||||
$expires = ! $expires ? 0 : (time() + $expires);
|
||||
$expires = ! $expires ? 0 : time() + (int) $expires;
|
||||
|
||||
$_COOKIE[$key] = $value;
|
||||
|
||||
@ -163,6 +163,6 @@ class Cookie {
|
||||
|
||||
protected function normalizeKey(string $key) : string
|
||||
{
|
||||
return str_replace([',', ';', ' ', '=', '.'], '_', $key);
|
||||
return str_replace([',', ';', ' ', '='], '_', $key);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user