]> git.mjollnir.org Git - moodle.git/commitdiff
Don't clean posted text on input (will be cleaned on output).
authormoodler <moodler>
Mon, 9 Aug 2004 14:56:03 +0000 (14:56 +0000)
committermoodler <moodler>
Mon, 9 Aug 2004 14:56:03 +0000 (14:56 +0000)
mod/forum/lib.php
mod/forum/post.php

index 46014d34c67752aca63241d30a73342acddc43ee..7f3c550db54bc1bb687a8ae600678c81862db326 100644 (file)
@@ -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;
index 69f4c1178b1da4bd8079c0c447d5e805b0a204bb..042028fc03ee029004856aa028ee2e6cac5b9ec2 100644 (file)
@@ -30,7 +30,7 @@
         $post->subject = strip_tags($post->subject, '<lang>');        // 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;