|
@@ -175,6 +175,13 @@ class Request
|
|
|
if (!isset($this->data['cookie'])) {
|
|
if (!isset($this->data['cookie'])) {
|
|
|
$this->data['cookie'] = [];
|
|
$this->data['cookie'] = [];
|
|
|
parse_str(preg_replace('/; ?/', '&', $this->header('cookie', '')), $this->data['cookie']);
|
|
parse_str(preg_replace('/; ?/', '&', $this->header('cookie', '')), $this->data['cookie']);
|
|
|
|
|
+ foreach ($this->data['cookie'] as $key => $value) {
|
|
|
|
|
+ if ($key[0] ?? '' === '$') {
|
|
|
|
|
+ unset($this->data['cookie'][$key]);
|
|
|
|
|
+ continue;
|
|
|
|
|
+ }
|
|
|
|
|
+ $this->data['cookie'][$key] = trim($value, '"');
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
if ($name === null) {
|
|
if ($name === null) {
|
|
|
return $this->data['cookie'];
|
|
return $this->data['cookie'];
|