Skip to content

Commit

Permalink
Just so we can put spaces in the bad words string.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikawhero committed Mar 26, 2005
1 parent dd54dea commit 7481057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter/censor/filter.php
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 7481057

Please sign in to comment.