- Patch #43572 by Tobias: don't accept spaces.
parent
0ec174d59c
commit
7489c87476
|
@ -1141,7 +1141,7 @@ function comment_validate($edit) {
|
|||
}
|
||||
|
||||
// Validate the comment's body.
|
||||
if ($edit['comment'] == '') {
|
||||
if (trim($edit['comment']) == '') {
|
||||
form_set_error('comment', t('The body of your comment is empty.'));
|
||||
}
|
||||
|
||||
|
|
|
@ -1141,7 +1141,7 @@ function comment_validate($edit) {
|
|||
}
|
||||
|
||||
// Validate the comment's body.
|
||||
if ($edit['comment'] == '') {
|
||||
if (trim($edit['comment']) == '') {
|
||||
form_set_error('comment', t('The body of your comment is empty.'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue