From 7e79a440de088be8c3bb6c348833013f8aa01830 Mon Sep 17 00:00:00 2001 From: mohrt Date: Fri, 26 Oct 2001 19:27:18 +0000 Subject: [PATCH] update debug console output, handle html encoding correctly --- Smarty.addons.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Smarty.addons.php b/Smarty.addons.php index e698e621..56f507e4 100644 --- a/Smarty.addons.php +++ b/Smarty.addons.php @@ -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; } }