Moodle Word Censorship Fix

Tuesday, July 27, 2010 Sukhwant Lota 0 Comments

We've found out that any words in Moodle that have been added to the "Bad Words" list actually shows the word in the alt text when a user moves their mouse over it.

to fix this you have to edit the following file

filter/censor/filter.php

around line 36 replace this code
 $words[ ] = new filterobject($badword, '', '',
with this:
 $words[ ] = new filterobject($badword, '', '',
The ALT text now reads the word "censored" rather than displaying the offending word you tried to remove in the first place.

Via (Lewis Carr)

0 comments: