diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 335e6a841c3..67a910cb122 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -1146,6 +1146,10 @@ function forum_print_post(&$post, $courseid, $ownpost=false, $reply=false, $link } else { echo "
";
echo "$post->subject
";
echo "";
diff --git a/mod/forum/post.php b/mod/forum/post.php
index bd784010a06..9330047ff50 100644
--- a/mod/forum/post.php
+++ b/mod/forum/post.php
@@ -20,7 +20,7 @@
$errordestination = $SESSION->fromurl;
}
- $post->subject = strip_tags($post->subject); // Strip all tags
+ $post->subject = strip_tags($post->subject, '