- Patch #395086 by Freso: tiny performance optimization.

merge-requests/26/head
Dries Buytaert 2009-03-10 11:21:27 +00:00
parent e7c7ee32a2
commit 0bbc3bfcb3
1 changed files with 1 additions and 1 deletions

View File

@ -1699,7 +1699,7 @@ function _comment_form_submit(&$comment_values) {
// 2) Strip out all HTML tags
// 3) Convert entities back to plain-text.
// Note: format is checked by check_markup().
$comment_values['subject'] = trim(truncate_utf8(decode_entities(strip_tags(check_markup($comment_values['comment'], $comment_values['comment_format']))), 29, TRUE));
$comment_values['subject'] = truncate_utf8(trim(decode_entities(strip_tags(check_markup($comment_values['comment'], $comment_values['comment_format'])))), 29, TRUE);
// Edge cases where the comment body is populated only by HTML tags will
// require a default subject.
if ($comment_values['subject'] == '') {