]> git.mjollnir.org Git - moodle.git/commitdiff
Adding a comment pointing to MDL-3964 which explains why we leave the
authorpoltawski <poltawski>
Tue, 13 Nov 2007 20:03:27 +0000 (20:03 +0000)
committerpoltawski <poltawski>
Tue, 13 Nov 2007 20:03:27 +0000 (20:03 +0000)
badword in the filter span title (as I almost 'fixed it' so it couldn't
be hovered over)

filter/censor/filter.php

index 6b8c8d1689d7b55fcc56c347f849d72c3766b8d6..1c244225a508a5d23bdb549a9e56dcce63992f5b 100644 (file)
@@ -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),'*'));
         }