Permalink
Browse files

Just so we can put spaces in the bad words string.

  • Loading branch information...
1 parent dd54dea commit 748105767fa3fc262433a961db5c88037b42d0cd ikawhero committed Mar 26, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 filter/censor/filter.php
@@ -20,7 +20,7 @@ function censor_filter($courseid, $text) {
$words = array();
$badwords = explode(',', get_string('censorbadwords'));
foreach ($badwords as $badword) {
- $words[] = new filterobject($badword, '<span class="censoredtext">', '</span>', false, false);
+ $words[] = new filterobject(trim($badword), '<span class="censoredtext">', '</span>', false, false);
}
}

0 comments on commit 7481057

Please sign in to comment.