mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-09 16:38:41 +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) {
|
if (!$comment) {
|
||||||
return '评论不能为空';
|
return '评论不能为空';
|
||||||
}
|
}
|
||||||
if (strlen($comment) > 1000) {
|
if (strlen($comment) > 2000) {
|
||||||
return '不能超过1000个字节';
|
return '不能超过 2000 个字节';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
@ -131,8 +131,8 @@ $reply_form->addTextArea('reply_comment', [
|
|||||||
if (!$comment) {
|
if (!$comment) {
|
||||||
return '评论不能为空';
|
return '评论不能为空';
|
||||||
}
|
}
|
||||||
if (strlen($comment) > 140) {
|
if (strlen($comment) > 1000) {
|
||||||
return '不能超过140个字节';
|
return '不能超过 1000 个字节';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user