From 7489c87476d6f4e4084ba7ed12938d6a648793ae Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 14 Feb 2006 19:17:00 +0000 Subject: - Patch #43572 by Tobias: don't accept spaces. --- modules/comment.module | 2 +- modules/comment/comment.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/comment.module b/modules/comment.module index 13fedb752..50478287e 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -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.')); } diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 13fedb752..50478287e 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -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.')); } -- cgit v1.2.3