Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed to use the new replacementphrase attribute so

bad words are replaced with a strlen(phrase) number
of **** characters. Bug 3605.
(http://moodle.org/bugs/bug.php?op=show&bugid=3605)
  • Loading branch information...
commit 6add2dbfc736860930f26fa3c6be30a0b89e8b72 1 parent aadb24e
stronk7 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  filter/censor/filter.php
2  filter/censor/filter.php
View
@@ -20,7 +20,7 @@ function censor_filter($courseid, $text) {
$words = array();
$badwords = explode(',', get_string('badwords', 'censor'));
foreach ($badwords as $badword) {
- $words[] = new filterobject(trim($badword), '<span class="censoredtext">', '</span>', false, false);
+ $words[] = new filterobject(trim($badword), '<span class="censoredtext">', '</span>', false, false,str_pad('',strlen(trim($badword)),'*'));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.