- bugfix {html_image} security check did fail on files relative to basedir (Issue 191)

This commit is contained in:
Uwe.Tews@googlemail.com
2014-06-08 19:03:39 +00:00
parent 7ca939f47b
commit 0e1f7fdcfc
2 changed files with 2 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ function smarty_function_html_image($params, $template)
}
} else {
// local file
if (!$template->smarty->security_policy->isTrustedResourceDir($params['file'])) {
if (!$template->smarty->security_policy->isTrustedResourceDir($_image_path)) {
return;
}
}