walkor 3 лет назад
Родитель
Сommit
413e2a3eb9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Protocols/Http/Request.php

+ 1 - 1
Protocols/Http/Request.php

@@ -164,7 +164,7 @@ class Request
     {
         if (!isset($this->_data['cookie'])) {
             $this->_data['cookie'] = array();
-            \parse_str(\str_replace('; ', '&', $this->header('cookie', '')), $this->_data['cookie']);
+            \parse_str(\preg_replace('/; ?/', '&', $this->header('cookie', '')), $this->_data['cookie']);
         }
         if ($name === null) {
             return $this->_data['cookie'];