From 04d08faa2a8b65083dd0c9a0283042ea6388969e Mon Sep 17 00:00:00 2001 From: messju Date: Fri, 8 Aug 2003 20:31:05 +0000 Subject: [PATCH] better escaping for $_debug_tpls[templates].filenames --- libs/debug.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/debug.tpl b/libs/debug.tpl index 2e8b2402..fb1e2051 100644 --- a/libs/debug.tpl +++ b/libs/debug.tpl @@ -41,7 +41,7 @@ _smarty_console.document.write("Smarty Debug Console"); _smarty_console.document.write("included templates & config files (load time in seconds):"); {section name=templates loop=$_debug_tpls} - _smarty_console.document.write("{section name=indent loop=$_debug_tpls[templates].depth}   {/section}{$_debug_tpls[templates].filename|escape:javascript}{if isset($_debug_tpls[templates].exec_time)} ({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% eq 0} (total){/if}{/if}"); + _smarty_console.document.write("{section name=indent loop=$_debug_tpls[templates].depth}   {/section}{$_debug_tpls[templates].filename|escape:html|escape:javascript}{if isset($_debug_tpls[templates].exec_time)} ({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% eq 0} (total){/if}{/if}"); {sectionelse} _smarty_console.document.write("no templates included"); {/section}