- use sha1() for filepath encoding

- updates on nocache_hash handling
This commit is contained in:
Uwe.Tews
2009-12-29 20:12:11 +00:00
parent 589f736efa
commit d1969d6f56
14 changed files with 94 additions and 446 deletions
@@ -94,8 +94,7 @@ class Smarty_Internal_Resource_File {
public function getCompiledFilepath($_template)
{
$_compile_id = isset($_template->compile_id) ? preg_replace('![^\w\|]+!','_',$_template->compile_id) : null;
// $_filepath = md5($_template->resource_name);
$_filepath = (string)abs(crc32($_template->getTemplateFilepath()));
$_filepath = sha1($_template->getTemplateFilepath());
// if use_sub_dirs, break file into directories
if ($_template->smarty->use_sub_dirs) {
$_filepath = substr($_filepath, 0, 2) . DS