From: moodler Date: Mon, 9 Aug 2004 14:56:03 +0000 (+0000) Subject: Don't clean posted text on input (will be cleaned on output). X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3b7d3db5de4f21e5b7d35f9507e01b531a57a0b8;p=moodle.git Don't clean posted text on input (will be cleaned on output). --- diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 46014d34c6..7f3c550db5 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -60,7 +60,6 @@ function forum_add_instance($forum) { global $CFG; $forum->timemodified = time(); - $forum->intro = clean_text($forum->intro); if (!$forum->userating) { $forum->assessed = 0; diff --git a/mod/forum/post.php b/mod/forum/post.php index 69f4c1178b..042028fc03 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -30,7 +30,7 @@ $post->subject = strip_tags($post->subject, ''); // Strip all tags except lang $post->subject = break_up_long_words($post->subject); - $post->message = clean_text($post->message, $post->format); // Clean up any bad tags + //$post->message = clean_text($post->message, $post->format); // Clean up any bad tags $post->attachment = isset($_FILES['attachment']) ? $_FILES['attachment'] : NULL;