better cleaning of post title SC#251; backported from MOODLE_16_STABLE
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user