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

This commit is contained in:
skodak
2006-05-15 14:49:24 +00:00
parent 4e13cae284
commit 9a817ca1ab
+1 -1
View File
@@ -73,7 +73,7 @@
$errordestination = $SESSION->fromurl;
}
$post->subject = clean_text(strip_tags($post->subject, '<lang><span>')); // Strip all tags except lang
$post->subject = clean_param(strip_tags($post->subject, '<lang><span>'), PARAM_CLEAN); // Strip all tags except lang
//$post->message = clean_text($post->message, $post->format); // Clean up any bad tags