소스 검색

[Templating] fixed cache loader as the logical name can contain characters not valid on some OSes

Fabien Potencier 14 년 전
부모
커밋
3422c140b8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Component/Templating/Loader/CacheLoader.php

+ 1 - 1
src/Symfony/Component/Templating/Loader/CacheLoader.php

@@ -50,7 +50,7 @@ class CacheLoader extends Loader
      */
     public function load(TemplateReferenceInterface $template)
     {
-        $key = $template->getLogicalName();
+        $key = md5($template->getLogicalName());
         $dir = $this->dir.DIRECTORY_SEPARATOR.substr($key, 0, 2);
         $file = substr($key, 2).'.tpl';
         $path = $dir.DIRECTORY_SEPARATOR.$file;