Merge pull request #301 from discomrade/ip-maxlength

Extend maxlength of ban IP to allow IPv6 subnets
This commit is contained in:
nonmakina 2021-07-11 11:04:51 +02:00 committed by GitHub
commit 79efd69baf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@
</th>
<td>
{% if not hide_ip %}
<input type="text" name="ip" id="ip" size="30" maxlength="40" value="{{ ip|e }}">
<input type="text" name="ip" id="ip" size="30" maxlength="43" value="{{ ip|e }}">
{% else %}
<em>{% trans 'hidden' %}</em>
{% endif %}
@ -61,7 +61,7 @@
<label for="length">{% trans 'Length' %}</label>
</th>
<td>
<input type="text" name="length" id="length" size="20" maxlength="40">
<input type="text" name="length" id="length" size="20" maxlength="43">
<span class="unimportant">(eg. "2d1h30m" or "2 days")</span></td>
</tr>
<tr>