Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a4f431ae
Commit
a4f431ae
authored
Dec 09, 2001
by
Kjartan
Browse files
- strip HTML tags from comment subjects.
parent
e8ca5acd
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/comment.module
View file @
a4f431ae
...
...
@@ -115,7 +115,7 @@ function comment_post($edit) {
}
else
{
// validate subject:
$edit
[
subject
]
=
$edit
[
subject
]
?
$edit
[
subject
]
:
substr
(
$edit
[
comment
],
0
,
29
);
$edit
[
subject
]
=
strip_tags
((
$edit
[
subject
]
?
$edit
[
subject
]
:
substr
(
$edit
[
comment
],
0
,
29
)
))
;
// add watchdog entry:
watchdog
(
"special"
,
"comment: added '
$edit[subject]
'"
);
...
...
modules/comment/comment.module
View file @
a4f431ae
...
...
@@ -115,7 +115,7 @@ function comment_post($edit) {
}
else
{
// validate subject:
$edit
[
subject
]
=
$edit
[
subject
]
?
$edit
[
subject
]
:
substr
(
$edit
[
comment
],
0
,
29
);
$edit
[
subject
]
=
strip_tags
((
$edit
[
subject
]
?
$edit
[
subject
]
:
substr
(
$edit
[
comment
],
0
,
29
)
))
;
// add watchdog entry:
watchdog
(
"special"
,
"comment: added '
$edit[subject]
'"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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