summaryrefslogtreecommitdiff
path: root/modules/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment.module')
-rw-r--r--modules/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment.module b/modules/comment.module
index f18054efd..0bf024501 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -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]'");