瀏覽代碼

Update Dirk

md5 -> sha1
Visman 4 年之前
父節點
當前提交
c8fae44a73
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vendor/artoodetoo/dirk/src/Dirk.php

+ 1 - 1
vendor/artoodetoo/dirk/src/Dirk.php

@@ -42,7 +42,7 @@ class Dirk extends PhpEngine
     {
         $name = \str_replace('.', '/', $name);
         $tpl  = $this->views . '/' . $name . $this->ext;
-        $php  = $this->cache . '/' . \md5($name) . '.php';
+        $php  = $this->cache . '/' . \sha1($name) . '.php';
         if (
             ! \file_exists($php)
             || \filemtime($tpl) > \filemtime($php)