Browse Source
Reduce overreach of fbi.gov filter
The initial filter would have ruined words or links containing 'discord', including the non-English words 'discordo' and 'discordar'.
Legitimate use of the exact word 'discord', such as sowing discord, will still trigger the filter.
pull/40/head
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
inc/instance-config.php
@ -492,7 +492,7 @@ $config['wordfilters'][] = array("/[$n_alias][^\p{L}0-9]*[$i_alias]+[^\p{L}0-9]*
$config['wordfilters'][] = array("/[$n_alias][^\p{L}0-9]*[$i_alias]+[^\p{L}0-9]*[$g_alias]+[^\p{L}0-9]*[$g_alias]+/imu", 'uygh', true);
$config['wordfilters'][] = array("/[$n_alias][^\p{L}0-9]*[$i_alias]+[^\p{L}0-9]*[$g_alias]+[^\p{L}0-9]*[$g_alias]+/imu", 'uygh', true);
$config['wordfilters'][] = array('/ewish uyghur/i', 'ewish nigger', true);
$config['wordfilters'][] = array('/ewish uyghur/i', 'ewish nigger', true);
$config['wordfilters'][] = array('/discord(\.(gg|com))?/iu', 'fbi.gov', true);
$config['wordfilters'][] = array('/(^|< br > |[ \/]) discord(\.(gg|com))?(s?([\W]|< br > |$)) /im u', '$1 fbi.gov$4 ', true);
// Prevents replacing false positives in the middle of words or links
// Prevents replacing false positives in the middle of words or links
$config['wordfilters'][] = array('/(^|< br > |[ (-])iq([) ?!.]||< br > |$)(score)?/imu', '$1autism score$2', true);
$config['wordfilters'][] = array('/(^|< br > |[ (-])iq([) ?!.]||< br > |$)(score)?/imu', '$1autism score$2', true);