mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-06 08:26:19 +02:00
- use sha1() for filepath encoding
- updates on nocache_hash handling
This commit is contained in:
@@ -97,7 +97,7 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data {
|
||||
*/
|
||||
static function get_key($template)
|
||||
{
|
||||
$key = 'F' . abs(crc32($template->getTemplateFilepath()));
|
||||
$key = sha1($template->getTemplateFilepath());
|
||||
if (isset(self::$template_data[$key])) {
|
||||
return $key;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user