Skip to content
Browse files

better cleaning of post title SC#251 revisited; backported from MOODL…

…E_16_STABLE
  • Loading branch information...
1 parent 4e13cae commit 9a817ca1ab267e4f8c2d5efd165393339ad7ceca skodak committed May 15, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/post.php
View
2 mod/forum/post.php
@@ -73,7 +73,7 @@
$errordestination = $SESSION->fromurl;
}
- $post->subject = clean_text(strip_tags($post->subject, '<lang><span>')); // Strip all tags except lang
+ $post->subject = clean_param(strip_tags($post->subject, '<lang><span>'), PARAM_CLEAN); // Strip all tags except lang
//$post->message = clean_text($post->message, $post->format); // Clean up any bad tags

0 comments on commit 9a817ca

Please sign in to comment.
Something went wrong with that request. Please try again.