소스 검색

[HttpKernel] fixed Request::getETags()

Fabien Potencier 15 년 전
부모
커밋
d14daf9275
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Components/HttpKernel/Request.php

+ 1 - 1
src/Symfony/Components/HttpKernel/Request.php

@@ -462,7 +462,7 @@ class Request
 
     public function getETags()
     {
-        return preg_split('/\s*,\s*/', $this->headers->get('if_none_match'));
+        return preg_split('/\s*,\s*/', $this->headers->get('if_none_match'), null, PREG_SPLIT_NO_EMPTY);
     }
 
     public function isNoCache()