summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-01-26 15:44:59 +0800
committerGitHub <noreply@github.com>2024-01-26 15:44:59 +0800
commit1820e875dcf852c57f923050ce802c76566fade5 (patch)
tree2253e373d8c7cecb8d90fd165fbd57e9d1ced94f
parenta112c7446c574a5d0c8c4cbb7925ea6623bd3c61 (diff)
downloadsmarty-1820e875dcf852c57f923050ce802c76566fade5.tar.gz
smarty-1820e875dcf852c57f923050ce802c76566fade5.tar.bz2
smarty-1820e875dcf852c57f923050ce802c76566fade5.zip
fix escape
-rw-r--r--src/Compile/PrintExpressionCompiler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compile/PrintExpressionCompiler.php b/src/Compile/PrintExpressionCompiler.php
index 99a03901..486512d4 100644
--- a/src/Compile/PrintExpressionCompiler.php
+++ b/src/Compile/PrintExpressionCompiler.php
@@ -84,7 +84,7 @@ class PrintExpressionCompiler extends Base {
}
if ($compiler->getTemplate()->getSmarty()->escape_html) {
- $output = "htmlspecialchars((string) {$output}, ENT_QUOTES, '" . addslashes(\Smarty\Smarty::$_CHARSET) . "')";
+ $output = "htmlspecialchars((string) ({$output}), ENT_QUOTES, '" . addslashes(\Smarty\Smarty::$_CHARSET) . "')";
}
}