Allow <lang> tags in forum subjects.
And filter them is $CFG->filterall is on
This commit is contained in:
@@ -1146,6 +1146,10 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link
|
||||
} 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>";
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
$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"];
|
||||
|
||||
Reference in New Issue
Block a user