diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-12-09 13:40:47 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-12-09 13:40:47 +0000 |
commit | a4f431aeb41b7d98fcf913aff53c27f42e0fa929 (patch) | |
tree | f6034278e96ed94b5b70e74ff2c889f18d206e51 /modules/comment/comment.module | |
parent | e8ca5acddef9931e8d473e4a2f70129d99a16104 (diff) | |
download | brdo-a4f431aeb41b7d98fcf913aff53c27f42e0fa929.tar.gz brdo-a4f431aeb41b7d98fcf913aff53c27f42e0fa929.tar.bz2 |
- strip HTML tags from comment subjects.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index f18054efd..0bf024501 100644 --- a/modules/comment/comment.module +++ b/modules/comment/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]'"); |