mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
Don't clean posted text on input (will be cleaned on output).
This commit is contained in:
parent
9d40806d0e
commit
3b7d3db5de
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user