ソースを参照

[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()