what if IP address contained bad characters? (highly local)
This commit is contained in:
parent
3571670b98
commit
3f405b3484
@ -21,7 +21,7 @@
|
|||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
{% if not hide_ip %}
|
{% if not hide_ip %}
|
||||||
<input type="text" name="ip" id="ip" size="30" maxlength="40" value="{{ ip }}">
|
<input type="text" name="ip" id="ip" size="30" maxlength="40" value="{{ ip|e }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<em>{% trans 'hidden' %}</em>
|
<em>{% trans 'hidden' %}</em>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
</td>
|
</td>
|
||||||
{% if mod|hasPermission(config.mod.remove_notes) %}
|
{% if mod|hasPermission(config.mod.remove_notes) %}
|
||||||
<td class="minimal">
|
<td class="minimal">
|
||||||
<a href="?/IP/{{ ip }}/remove_note/{{ note.id }}">
|
<a href="?/IP/{{ ip|url_encode(true) }}/remove_note/{{ note.id }}">
|
||||||
<small>[{% trans 'remove' %}]</small>
|
<small>[{% trans 'remove' %}]</small>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user