Enforce maximum length of ban appeal

This commit is contained in:
discomrade
2021-07-24 10:47:56 -02:00
committed by Zankaria
parent 3ac86a074a
commit e80549a881
3 changed files with 19 additions and 6 deletions

View File

@@ -135,7 +135,7 @@
{% endif %}
<form class="ban-appeal" action="{{ config.file_post }}" method="post">
<input type="hidden" name="ban_id" value="{{ ban.id }}">
<textarea name="appeal" rows="4" cols="40"></textarea>
<textarea name="appeal" rows="4" cols="40" maxlength="{{ config.ban_appeal_max_chars }}"></textarea>
<input type="submit" value="Submit">
</form>
{% endif %}