Bug 7618 Escape HTML special characters for SQL displayed above results in Report...
authorDavid <dcook@prosentient.com.au>
Mon, 12 Mar 2012 23:17:32 +0000 (10:17 +1100)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 16 Mar 2012 10:52:06 +0000 (11:52 +0100)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt

index caf27f1..137fdbf 100644 (file)
@@ -496,7 +496,7 @@ canned reports and writing custom SQL reports.</p>
 <h1>[% name %]</h1>
 [% IF ( notes ) %]<p>[% notes %]</p>[% END %]
 [% IF ( unlimited_total ) %]<p>Total number of rows matching the (unlimited) query is [% unlimited_total %].</p>[% END %]
-<pre id="sql_output">[% sql %]</pre>
+<pre id="sql_output">[% sql |html %]</pre>
 <div class="pages">[% pagination_bar %]</div>
 [% UNLESS ( errors ) %]
 <table>