Partial fix Censoring is not working properly with foreign language (russian)

Romchik®

Well-known member
#1
In ACP:

word (Match exact word ) -> ****
слово (Match exact word ) -> *****

In message:

word -> ****
слово -> *****
woRd -> *****
слоВо -> слоВо

Half solution (thanks Yoskaldyr):
in /library/XenForo/Helper/String.php
Code:
                    $search = '#(?<=\W|^)(' . preg_quote($word, '#') . ')(?=\W|$)#i';
replace with
Code:
                    $search = '#(?<=\W|^)(' . preg_quote($word, '#') . ')(?=\W|$)#iu';
But this work only with "Match exact word " option.
 
Top