mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
Allow <lang> tags in forum subjects.
And filter them is $CFG->filterall is on
This commit is contained in:
parent
3c89f9a837
commit
83ec909837
2 changed files with 5 additions and 1 deletions
|
@ -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"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue