Don't clean posted text on input (will be cleaned on output).

This commit is contained in:
moodler 2004-08-09 14:56:03 +00:00
parent 9d40806d0e
commit 3b7d3db5de
2 changed files with 1 additions and 2 deletions

View 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;

View 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;