Browse Source

Escape result in ?/debug/sql

pull/40/head
Michael Save 11 years ago
parent
commit
db1b50cfc3
  1. 6
      templates/mod/debug/sql.html

6
templates/mod/debug/sql.html

@ -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 %}

Loading…
Cancel
Save