- Patch #43572 by Tobias: don't accept spaces.

4.7.x
Dries Buytaert 2006-02-14 19:17:00 +00:00
parent 0ec174d59c
commit 7489c87476
2 changed files with 2 additions and 2 deletions

View File

@ -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.'));
}

View File

@ -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.'));
}