Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.8.6, 1.9, 1.9.1, 1.9.2
-
Fix Version/s: None
-
Component/s: Administration
-
Labels:None
-
Environment:All
-
Database:Any
-
Affected Branches:MOODLE_18_STABLE, MOODLE_19_STABLE
Description
A new filter 'Censorship (with overrides)' provides both the blacking out words on a default or custom badword list, and the skipping over words on a custom white list that would otherwise be blacked out.
This to be considered as a replacement for the Word Censorship filter in the Core.
Tasks to do for this to succeed:
1. Three language strings to be added to all translations of lang/xx/admin.php: 'goodwordsconfig', 'goodwordsdefault', 'goodwordslist'
2. Two language strings to be added to all translations of lang/xx/censorship.php; 'censorshipfiltererror', 'filtername' [amended to 'Censorship (with overrides)']
- this file to otherwise a copy of censor.php
Please note: http://moodle.org/mod/forum/discuss.php?d=101484 gives current install details.
I would also like to mention that it would be a trivial matter to make the whitelist case-sensitive if that were to be preferred - though it would plainly be disadvantageous to have a case-sensitive blacklist!
I would also have liked to have provided a setting for which character would be used to blank the badwords, such as offering Arial's U+2588 Full Block in place to the asterisk,
but at the time I left this because of unicode concerns. - JW