Ver código fonte

what if IP address contained bad characters? (highly local)

pull/47/head^2
czaks 8 anos atrás
pai
commit
3f405b3484
2 arquivos alterados com 2 adições e 2 exclusões
  1. +1
    -1
      templates/mod/ban_form.html
  2. +1
    -1
      templates/mod/view_ip.html

+ 1
- 1
templates/mod/ban_form.html Ver arquivo

@@ -21,7 +21,7 @@
</th>
<td>
{% 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 %}
<em>{% trans 'hidden' %}</em>
{% endif %}


+ 1
- 1
templates/mod/view_ip.html Ver arquivo

@@ -45,7 +45,7 @@
</td>
{% if mod|hasPermission(config.mod.remove_notes) %}
<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>
</a>
</td>


Carregando…
Cancelar
Salvar