fix filepaths to core files to use DIRECTORY_SEPARATOR

This commit is contained in:
mohrt
2003-06-21 17:35:15 +00:00
parent e61e05e05b
commit 9526d1ed42
22 changed files with 60 additions and 59 deletions

View File

@@ -113,7 +113,7 @@ function smarty_function_html_image($params, &$smarty)
}
}
$_params = array('resource_type' => 'file', 'resource_name' => $_image_path);
require_once(SMARTY_DIR . 'core/core.is_secure.php');
require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.is_secure.php');
if(!$smarty->security && !smarty_core_is_secure($_params, $smarty)) {
$smarty->trigger_error("html_image: (secure) '$_image_path' not in secure directory", E_USER_NOTICE);
return;