mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
update debug console output, handle html encoding correctly
This commit is contained in:
@@ -726,7 +726,7 @@ function smarty_mod_debug_print_var($var, $depth=0, $length=40) {
|
||||
$results = $var;
|
||||
}
|
||||
$results = preg_replace("![\r\t\n]!", " ", $results);
|
||||
$results = htmlspecialchars($results);
|
||||
$results = htmlspecialchars(htmlspecialchars($results));
|
||||
return $results;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user