Skip to content

Commit

Permalink
fix escape
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored Jan 26, 2024
1 parent a112c74 commit 1820e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compile/PrintExpressionCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function compile($args, \Smarty\Compiler\Template $compiler, $parameter =
}

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) . "')";
}

}
Expand Down

0 comments on commit 1820e87

Please sign in to comment.