diff --git a/htdocs/class/libraries/vendor/smarty/smarty/CHANGELOG.md b/htdocs/class/libraries/vendor/smarty/smarty/CHANGELOG.md index 97355b6df..bff690d84 100644 --- a/htdocs/class/libraries/vendor/smarty/smarty/CHANGELOG.md +++ b/htdocs/class/libraries/vendor/smarty/smarty/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [4.5.4] - 2024-08-14 +- Fixed that using `count()` would trigger a deprecation notice. [#813](https://github.com/smarty-php/smarty/issues/813) + + ## [4.5.3] - 2024-05-28 - Fixed a code injection vulnerability in extends-tag. This addresses CVE-2024-35226. diff --git a/htdocs/class/libraries/vendor/smarty/smarty/libs/Smarty.class.php b/htdocs/class/libraries/vendor/smarty/smarty/libs/Smarty.class.php index b285a99e0..97706e2aa 100644 --- a/htdocs/class/libraries/vendor/smarty/smarty/libs/Smarty.class.php +++ b/htdocs/class/libraries/vendor/smarty/smarty/libs/Smarty.class.php @@ -107,7 +107,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '4.5.3'; + const SMARTY_VERSION = '4.5.4'; /** * define variable scopes */ diff --git a/htdocs/class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php b/htdocs/class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php index 8ff3e0521..03797f7f8 100644 --- a/htdocs/class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php +++ b/htdocs/class/libraries/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php @@ -658,7 +658,7 @@ public function compilePHPFunctionCall($name, $parameter) if ( !$this->smarty->loadPlugin('smarty_modifiercompiler_' . $name) && !isset($this->smarty->registered_plugins[Smarty::PLUGIN_MODIFIER][$name]) - && !in_array($name, ['time', 'join', 'is_array', 'in_array']) + && !in_array($name, ['time', 'join', 'is_array', 'in_array', 'count']) ) { trigger_error('Using unregistered function "' . $name . '" in a template is deprecated and will be ' . 'removed in a future release. Use Smarty::registerPlugin to explicitly register ' . diff --git a/htdocs/include/version.php b/htdocs/include/version.php index 6d698d26b..fce25c4a4 100644 --- a/htdocs/include/version.php +++ b/htdocs/include/version.php @@ -29,4 +29,4 @@ /** * Define XOOPS version */ -define('XOOPS_VERSION', 'XOOPS 2.5.12-Beta1'); +define('XOOPS_VERSION', 'XOOPS 2.5.12-Beta3');