diff --git a/libs/debug.tpl b/libs/debug.tpl
index e0517984..2e8b2402 100644
--- a/libs/debug.tpl
+++ b/libs/debug.tpl
@@ -9,7 +9,7 @@
Smarty Debug Console |
included templates & config files (load time in seconds): |
{section name=templates loop=$_debug_tpls}
- {section name=indent loop=$_debug_tpls[templates].depth} {/section}{$_debug_tpls[templates].filename}{if isset($_debug_tpls[templates].exec_time)} ({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% eq 0} (total){/if}{/if} |
+ {section name=indent loop=$_debug_tpls[templates].depth} {/section}{$_debug_tpls[templates].filename|escape:html}{if isset($_debug_tpls[templates].exec_time)} ({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% eq 0} (total){/if}{/if} |
{sectionelse}
no templates included |
{/section}
@@ -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}{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: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}