better cleaning of post title SC#251; merged from MOODLE_16_STABLE

This commit is contained in:
skodak 2006-05-15 14:32:14 +00:00
parent 1b8991fd9c
commit 62b504d20b

View File

@ -79,7 +79,7 @@
$errordestination = $SESSION->fromurl;
}
$post->subject = strip_tags($post->subject, '<lang><span>'); // Strip all tags except lang
$post->subject = clean_text(strip_tags($post->subject, '<lang><span>')); // Strip all tags except lang
//$post->message = clean_text($post->message, $post->format); // Clean up any bad tags