Skip to content

Commit

Permalink
Adding a comment pointing to MDL-3964 which explains why we leave the
Browse files Browse the repository at this point in the history
badword in the filter span title (as I almost 'fixed it' so it couldn't
be hovered over)
  • Loading branch information
poltawski committed Nov 13, 2007
1 parent b7cf8ea commit 4b991dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions filter/censor/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function censor_filter($courseid, $text) {
}
foreach ($badwords as $badword) {
$badword = trim($badword);
// See MDL-3964 for explanation of leaving the badword in the span title
$words[] = new filterobject($badword, '<span class="censoredtext" title="'.$badword.'">', '</span>',
false, false, str_pad('',strlen($badword),'*'));
}
Expand Down

0 comments on commit 4b991dd

Please sign in to comment.