0
@@ -75,6 +75,9 @@ function cms_module_GetTemplate(&$modinstance, $tpl_name, $modulename = '')
0
function cms_module_GetTemplateFromFile(&$modinstance, $template_name)
0
+ $ok = (strpos($tpl_name, '..') === false);
0
$config = &$gCms->GetConfig();
0
$tpl_base = $config['root_path'].DIRECTORY_SEPARATOR.'modules'.DIRECTORY_SEPARATOR;
0
@@ -128,6 +131,9 @@ function cms_module_DeleteTemplate(&$modinstance, $tpl_name = '', $modulename =
0
function cms_module_IsFileTemplateCached(&$modinstance, $tpl_name, $designation = '', $timestamp = '', $cacheid = '')
0
+ $ok = (strpos($tpl_name, '..') === false);
0
$smarty = &$gCms->GetSmarty();
0
$oldcache = $smarty->caching;
0
@@ -146,6 +152,9 @@ function cms_module_IsFileTemplateCached(&$modinstance, $tpl_name, $designation
0
function cms_module_ProcessTemplate(&$modinstance, $tpl_name, $designation = '', $cache = false, $cacheid = '')
0
+ $ok = (strpos($tpl_name, '..') === false);
0
$smarty = &$gCms->GetSmarty();
0
@@ -160,6 +169,9 @@ function cms_module_ProcessTemplate(&$modinstance, $tpl_name, $designation = '',
0
function cms_module_IsDatabaseTemplateCached(&$modinstance, $tpl_name, $designation = '', $timestamp = '')
0
+ $ok = (strpos($tpl_name, '..') === false);
0
$smarty = &$gCms->GetSmarty();
0
$oldcache = $smarty->caching;
0
@@ -194,6 +206,9 @@ function cms_module_ProcessTemplateFromData(&$modinstance, $data)
0
function cms_module_ProcessTemplateFromDatabase(&$modinstance, $tpl_name, $designation = '', $cache = false)
0
+ $ok = (strpos($tpl_name, '..') === false);
0
$smarty = &$gCms->GetSmarty();
Comments
No one has commented yet.