diff --git a/mod/forum/post.php b/mod/forum/post.php index 524dbfc33f7..0b8f6595325 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -73,7 +73,7 @@ $errordestination = $SESSION->fromurl; } - $post->subject = clean_text(strip_tags($post->subject, '')); // Strip all tags except lang + $post->subject = clean_param(strip_tags($post->subject, ''), PARAM_CLEAN); // Strip all tags except lang //$post->message = clean_text($post->message, $post->format); // Clean up any bad tags