mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 13:52:37 +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…
x
Reference in New Issue
Block a user