From: poltawski Date: Tue, 13 Nov 2007 20:03:27 +0000 (+0000) Subject: Adding a comment pointing to MDL-3964 which explains why we leave the X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4b991ddd18ea60fff266ce50c2476c6b52a37d48;p=moodle.git Adding a comment pointing to MDL-3964 which explains why we leave the badword in the filter span title (as I almost 'fixed it' so it couldn't be hovered over) --- diff --git a/filter/censor/filter.php b/filter/censor/filter.php index 6b8c8d1689..1c244225a5 100644 --- a/filter/censor/filter.php +++ b/filter/censor/filter.php @@ -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, '', '', false, false, str_pad('',strlen($badword),'*')); }