浏览代码

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