diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-10-01 08:43:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-10-01 08:43:51 +0000 |
commit | 0200ccf4da9bfa015361d13ebb040800944f5df9 (patch) | |
tree | 661e233cdf96d1ae04c59296ab46c6c7f53574d3 /modules/comment/comment.module | |
parent | f8e2be5fe797314ac04c9730b63efd6e8dadf125 (diff) | |
download | brdo-0200ccf4da9bfa015361d13ebb040800944f5df9.tar.gz brdo-0200ccf4da9bfa015361d13ebb040800944f5df9.tar.bz2 |
- Patch by chx: fixed validation check.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 01f732a62..3ef7b6504 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -546,8 +546,10 @@ function comment_preview($edit) { } $comment->timestamp = $edit['timestamp'] ? $edit['timestamp'] : time(); - // Preview the comment. - $output .= theme('comment_view', $comment); + // Preview the comment with security check. + if (!form_get_errors()) { + $output .= theme('comment_view', $comment); + } $output .= theme('comment_form', $edit, t('Reply')); if ($edit['pid']) { |