Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0bbc3bfc
Commit
0bbc3bfc
authored
Mar 10, 2009
by
Dries Buytaert
Browse files
- Patch
#395086
by Freso: tiny performance optimization.
parent
e7c7ee32
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/comment/comment.module
View file @
0bbc3bfc
...
...
@@ -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'
]
==
''
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment