mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-24 14:48:42 +00:00
fix(blog): comment length limit
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8ccd1f642c
commit
2cf96c34ac
@ -56,8 +56,8 @@ $comment_form->addTextArea('comment', [
|
||||
if (!$comment) {
|
||||
return '评论不能为空';
|
||||
}
|
||||
if (strlen($comment) > 1000) {
|
||||
return '不能超过1000个字节';
|
||||
if (strlen($comment) > 2000) {
|
||||
return '不能超过 2000 个字节';
|
||||
}
|
||||
return '';
|
||||
},
|
||||
@ -131,8 +131,8 @@ $reply_form->addTextArea('reply_comment', [
|
||||
if (!$comment) {
|
||||
return '评论不能为空';
|
||||
}
|
||||
if (strlen($comment) > 140) {
|
||||
return '不能超过140个字节';
|
||||
if (strlen($comment) > 1000) {
|
||||
return '不能超过 1000 个字节';
|
||||
}
|
||||
return '';
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user