From ed6fee35422eac84b281d3659eeffd81c1cd8a36 Mon Sep 17 00:00:00 2001 From: messju Date: Mon, 30 Jun 2003 15:44:25 +0000 Subject: [PATCH] match first character of file-attribute against "/" instead of DIRECTORY_SEPARATOR since it is a url-path and not a file-path. --- libs/plugins/function.html_image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/plugins/function.html_image.php b/libs/plugins/function.html_image.php index fc6c685e..2fcdb4e1 100644 --- a/libs/plugins/function.html_image.php +++ b/libs/plugins/function.html_image.php @@ -113,8 +113,8 @@ 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'); + $_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;