Don't allow users to post blank comments.
git-svn-id: svn://10.0.0.236/trunk@218668 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
870833659a
commit
840490b0a9
@ -38,7 +38,7 @@ class Comment extends AppModel {
|
||||
var $name = 'Comment';
|
||||
|
||||
var $validate = array(
|
||||
'text' => VALID_NOT_EMPTY
|
||||
'text' => "/^\S/"
|
||||
);
|
||||
|
||||
function canComment($pid, $uid) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user