From 8ad3fade36d442735cab3ffa1fa516b8495b9959 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Mon, 28 Dec 2009 17:02:48 +0000 Subject: [PATCH] - adding md5 to nocache_hash --- change_log.txt | 1 + libs/sysplugins/smarty_internal_templatecompilerbase.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/change_log.txt b/change_log.txt index 86d6eedf..2fc2718e 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,7 @@ 12/28/2009 - update for security fixes - make modifier plugins always trusted +- adding md5 to nocache_hash 12/27/2009 --- this is a major update with a couple of internal changes --- diff --git a/libs/sysplugins/smarty_internal_templatecompilerbase.php b/libs/sysplugins/smarty_internal_templatecompilerbase.php index 848d4617..e2b5a22a 100644 --- a/libs/sysplugins/smarty_internal_templatecompilerbase.php +++ b/libs/sysplugins/smarty_internal_templatecompilerbase.php @@ -28,7 +28,7 @@ class Smarty_Internal_TemplateCompilerBase { */ public function __construct() { - $this->nocache_hash = uniqid(rand(),true); + $this->nocache_hash = md5(uniqid(rand(),true)); } // abstract function doCompile($_content); /**