From a4f431aeb41b7d98fcf913aff53c27f42e0fa929 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sun, 9 Dec 2001 13:40:47 +0000 Subject: - strip HTML tags from comment subjects. --- modules/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment.module') 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]'"); -- cgit v1.2.3