소스 검색

Update Request.php

walkor 3 년 전
부모
커밋
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'];