limit length of new comments
same constraint in editing a comment
This commit is contained in:
parent
4bddb933ad
commit
3f51bbe5ff
|
@ -164,6 +164,9 @@ def ticket_comment_POST(owner, name, ticket_id):
|
|||
abort(403)
|
||||
else:
|
||||
text = valid.require("comment")
|
||||
valid.expect(not text or 3 <= len(text) <= 16384,
|
||||
"Comment must be between 3 and 16384 characters.",
|
||||
field="comment")
|
||||
|
||||
if resolve:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue