And filter them is $CFG->filterall is on
} else {
echo "<td bgcolor=\"$THEME->cellheading2\" class=\"forumpostheadertopic\" width=\"100%\">";
}
+
+ if (!empty($CFG->filterall)) { /// Put the subject through the filters
+ $post->subject = filter_text($post->subject, $courseid);
+ }
echo "<p>";
echo "<font size=3><b>$post->subject</b></font><br />";
echo "<font size=2>";
$errordestination = $SESSION->fromurl;
}
- $post->subject = strip_tags($post->subject); // Strip all tags
+ $post->subject = strip_tags($post->subject, '<lang>'); // Strip all tags except lang
$post->message = clean_text($post->message, $post->format); // Clean up any bad tags
$post->attachment = $_FILES["attachment"];