From 4b991ddd18ea60fff266ce50c2476c6b52a37d48 Mon Sep 17 00:00:00 2001 From: poltawski Date: Tue, 13 Nov 2007 20:03:27 +0000 Subject: [PATCH] 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) --- filter/censor/filter.php | 1 + 1 file changed, 1 insertion(+) 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),'*')); } -- 2.39.5