]> git.mjollnir.org Git - moodle.git/commitdiff
better cleaning of post title SC#251; merged from MOODLE_16_STABLE
authorskodak <skodak>
Mon, 15 May 2006 14:32:14 +0000 (14:32 +0000)
committerskodak <skodak>
Mon, 15 May 2006 14:32:14 +0000 (14:32 +0000)
mod/forum/post.php

index b2bd7091db3355ec42f5777cb1115c4e8521b063..db38dd39193e781a2038d68f7467d508285b7642 100644 (file)
@@ -79,7 +79,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