Escape result in ?/debug/sql

This commit is contained in:
Michael Save 2013-01-26 00:00:39 +11:00
parent cadf276891
commit db1b50cfc3

View File

@ -10,17 +10,17 @@
<table class="modlog"> <table class="modlog">
<tr> <tr>
{% for key in keys %} {% for key in keys %}
<th>{{ key }}</th> <th>{{ key | e }}</th>
{% endfor %} {% endfor %}
</tr> </tr>
{% for row in result %} {% for row in result %}
<tr> <tr>
{% for col in row %} {% for col in row %}
<td>{{ col }}</td> <td>{{ col | e }}</td>
{% endfor %} {% endfor %}
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
{% elseif error %} {% elseif error %}
<p style="text-align:center;color:#d00">{{ error }}</p> <p style="text-align:center;color:#d00">{{ error | e }}</p>
{% endif %} {% endif %}