new paste: add maxlength to input box
This goes into a mysql "text" type field which is 65,535 characters long. Set maxlength just under this to avoid interactive use sending too much data, which fails with a 502 error currently. Change-Id: Ieedef0fd956a5d31e682a4c808fb1197b55121b6
This commit is contained in:
parent
50d45eddc8
commit
e22ae1230b
@ -21,7 +21,7 @@
|
||||
{% if parent %}
|
||||
<input type="hidden" name="parent" value="{{ parent.identifier }}" />
|
||||
{% endif %}
|
||||
<textarea name="code" rows="10" cols="80">{{ code|e }}</textarea>
|
||||
<textarea name="code" rows="10" cols="80" maxlength='65530'>{{ code|e }}</textarea>
|
||||
<select name="language">
|
||||
{% for key, caption in languages %}
|
||||
<option value="{{ key }}"{% if language == key %} selected="selected"{% endif %}>{{ caption|e }}</option>
|
||||
|
Loading…
Reference in New Issue
Block a user