From: skodak Date: Mon, 15 May 2006 14:48:11 +0000 (+0000) Subject: better cleaning of post title SC#251 revisited; merged from MOODLE_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3b25960385eabb3b96af36b32d3df5612cd142de;p=moodle.git better cleaning of post title SC#251 revisited; merged from MOODLE_16_STABLE --- diff --git a/mod/forum/post.php b/mod/forum/post.php index db38dd3919..df78008903 100644 --- a/mod/forum/post.php +++ b/mod/forum/post.php @@ -79,7 +79,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