mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
plugins: modifier.escape fix typo
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
* @param string $string input string
|
* @param string $string input string
|
||||||
* @param string $esc_type escape type
|
* @param string $esc_type escape type
|
||||||
* @param string $char_set character set, used for htmlspecialchars() or htmlentities()
|
* @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
|
* @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_1 = false;
|
||||||
static $is_loaded_2 = false;
|
static $is_loaded_2 = false;
|
||||||
|
|
||||||
if (!$char_set) {
|
if (!$char_set) {
|
||||||
$char_set = Smarty::$_CHARSET;
|
$char_set = Smarty::$_CHARSET;
|
||||||
}
|
}
|
||||||
|
|
||||||
$string = (string)$string;
|
$string = (string)$string;
|
||||||
|
|
||||||
switch ($esc_type) {
|
switch ($esc_type) {
|
||||||
|
Reference in New Issue
Block a user