Commit 7489c874 authored by Dries's avatar Dries

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

parent 0ec174d5
......@@ -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.'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment