From 40f40e549dafb0c3522681fbf349ed5f6f69f803 Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 8 Aug 2022 17:30:22 +0200 Subject: [PATCH] plugins: modifier.escape fix typo --- libs/plugins/modifier.escape.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/plugins/modifier.escape.php b/libs/plugins/modifier.escape.php index df4aa036..1731c3c9 100644 --- a/libs/plugins/modifier.escape.php +++ b/libs/plugins/modifier.escape.php @@ -17,7 +17,7 @@ * @param string $string input string * @param string $esc_type escape type * @param string $char_set character set, used for htmlspecialchars() or htmlentities() - * @param boolean $double_encode encode already encoded entitites again, used for htmlspecialchars() or htmlentities() + * @param boolean $double_encode encode already encoded entities again, used for htmlspecialchars() or htmlentities() * * @return string escaped input string */ @@ -25,10 +25,10 @@ function smarty_modifier_escape($string, $esc_type = 'html', $char_set = null, $ { static $is_loaded_1 = false; static $is_loaded_2 = false; + if (!$char_set) { $char_set = Smarty::$_CHARSET; } - $string = (string)$string; switch ($esc_type) {