From 4e13cae284d82d6f77e384316c4e09c9b5871f96 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 15 May 2006 14:35:13 +0000 Subject: [PATCH] better cleaning of post title SC#251; backported from MOODLE_16_STABLE --- mod/forum/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/forum/post.php b/mod/forum/post.php index a4cda1b5402..524dbfc33f7 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -73,7 +73,7 @@ $errordestination = $SESSION->fromurl; } - $post->subject = strip_tags($post->subject, ''); // Strip all tags except lang + $post->subject = clean_text(strip_tags($post->subject, '')); // Strip all tags except lang //$post->message = clean_text($post->message, $post->format); // Clean up any bad tags