- 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

@@ -3,6 +3,7 @@
- bugfix registered objects did not work after spelling fixes of 06.06.2014
- bugfix {block} tags within {literal} .. {/literal} got not displayed correctly (topic 25024)
- bugfix UNC WINDOWS PATH like "\\psf\path\to\dir" did not work as template directory (Issue 192)
- bugfix {html_image} security check did fail on files relative to basedir (Issue 191)
06.06.2014
- fixed PHPUnit outputFilterTrimWhitespaceTests.php assertion of test result

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;
}
}