coppermine-gallery.com/forum

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.


// 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*');