Skip to content

Commit

Permalink
Merge pull request #1475 from mambax7/master
Browse files Browse the repository at this point in the history
Smarty 4.5.4
  • Loading branch information
mambax7 authored Aug 18, 2024
2 parents 1ed55ed + 4cdb848 commit b1be140
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions htdocs/class/libraries/vendor/smarty/smarty/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 ' .
Expand Down
2 changes: 1 addition & 1 deletion htdocs/include/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
/**
* Define XOOPS version
*/
define('XOOPS_VERSION', 'XOOPS 2.5.12-Beta1');
define('XOOPS_VERSION', 'XOOPS 2.5.12-Beta3');

0 comments on commit b1be140

Please sign in to comment.