forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Makc666 on March 09, 2007, 07:00:40 pm

Title: Single Russian / Cyrillic words in word censor are not filtered $lang_bad_words
Post by: Makc666 on March 09, 2007, 07:00:40 pm
Sorry for using bad words :)

If I add word 'идиот' to russian.php and post comment with this word, like 'user is an идиот' then CPG will not filter it.

If I add word 'идио*' to russian.php and post comment with this word, like 'user is an идиот' then CPG will not filter it.

If I add word '*диот' to russian.php and post comment with this word, like 'user is an идиот' then CPG will not filter it.

If I add word '*идиот*' to russian.php and post comment with this word, like 'user is an идиот' then CPG will filter it as 'user is an (...)'.

If I add word '*дио*' to russian.php and post comment with this word, like 'user is an идиот' then CPG will filter it as 'user is an и(...)т'.

Of course single brackets '  ' is not used whem posting comments :)

With English words like 'Cock' or 'cum' there is no such problem.


Code: [Select]
// For the word censor
$lang_bad_words = array('идиот', '*сука*', '*бля*', '**beep**', 'asshole', 'assramer', 'bitch*', 'c0ck', 'clits', 'Cock', 'cum', '*beep**', 'dago', 'daygo', 'dego', 'dick*', 'dildo', 'fanculo', 'feces', 'foreskin', 'Fu\(*', 'fuk*', 'honkey', 'hore', 'injun', 'kike', 'lesbo', 'masturbat*', 'motherfucker', 'nazis', 'nigger*', 'nutsack', 'penis', 'phuck', 'poop', 'pussy', 'scrotum', 'shit', 'slut', 'titties', 'titty', 'twaty', 'wank*', 'whore', 'wop*');