From 146ecb7a85dfa60af539af83f0a083c95994a3ef Mon Sep 17 00:00:00 2001 From: messju Date: Thu, 15 Jan 2004 15:04:33 +0000 Subject: [PATCH] forgot to remove duplicate is_secure()-check --- libs/plugins/function.html_image.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libs/plugins/function.html_image.php b/libs/plugins/function.html_image.php index 56c55fdc..2654b03d 100644 --- a/libs/plugins/function.html_image.php +++ b/libs/plugins/function.html_image.php @@ -113,12 +113,6 @@ function smarty_function_html_image($params, &$smarty) return; } } - $_params = array('resource_type' => 'file', 'resource_name' => $_image_path); - 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; - } if(!isset($params['width'])) { $width = $_image_data[0];