diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 3548df978ff2f20f608b811e2a729343b9d5f2db..19233a572c7539a3d7a91b72b691276ed0e4a277 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1656,7 +1656,7 @@ function _comment_form_submit($form_values) { // 2) Strip out all HTML tags // 3) Convert entities back to plain-text. // Note: format is checked by check_markup(). - $form_values['subject'] = trim(truncate_utf8(decode_entities(strip_tags(check_markup($form_values['comment'], $form_values['format']))), 29, TRUE)); + $form_values['subject'] = truncate_utf8(trim(decode_entities(strip_tags(check_markup($form_values['comment'], $form_values['format'])))), 29, TRUE); // Edge cases where the comment body is populated only by HTML tags will // require a default subject. if ($form_values['subject'] == '') {