From 1c4b4cb58f1f9cb931fa4de5dad8b6c380acdcdc Mon Sep 17 00:00:00 2001 From: Nastro Date: Tue, 23 Jan 2024 20:14:39 +0300 Subject: [PATCH] fixed literal bug (#12) Co-authored-by: Yuri.Bushenko --- CHANGELOG.md | 3 +++ lib/common.version.inc | 2 +- vendor/Smarty/Smarty_Compiler.class.php | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4622569..c46a0745 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change log +## [3.0.4] 2024-01-23 +- Исправлена ошибка в Smarty при использовании {literal} + ## [3.0.3] 2023-12-14 - Исправлена ошибка в Smarty при использовании функции addTemplateFunction - Исправлена ошибка в AuditLogModule diff --git a/lib/common.version.inc b/lib/common.version.inc index d1b3b210..4cfcb081 100644 --- a/lib/common.version.inc +++ b/lib/common.version.inc @@ -1,3 +1,3 @@ _folded_blocks); + if (!$block = current($this->_folded_blocks)) { + break; + } + next($this->_folded_blocks); $this->_current_line_no += substr_count($block[0], "\n"); /* the number of matched elements in the regexp in _compile_file() determins the type of folded tag that was found */