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

This commit is contained in:
skodak
2006-05-15 14:35:13 +00:00
parent 9bc5c7f85e
commit 4e13cae284
+1 -1
View File
@@ -73,7 +73,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