Single Russian / Cyrillic words in word censor are not filtered $lang_bad_words Single Russian / Cyrillic words in word censor are not filtered $lang_bad_words
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Single Russian / Cyrillic words in word censor are not filtered $lang_bad_words

Started by Makc666, March 09, 2007, 07:00:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Makc666

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