mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Don't allow users to post blank comments.
This commit is contained in:
parent
fe5c77c99a
commit
72be962dad
@ -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…
Reference in New Issue
Block a user