1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

Merge pull request #68 from Macil/mcfix

Antibot make_confusing fix
This commit is contained in:
Michael 2012-08-25 20:27:16 -07:00
commit 4d37fb761f

View File

@ -48,8 +48,9 @@ class AntiBot {
foreach ($chars as &$c) {
if (rand(0, 2) != 0)
continue;
$c = mb_encode_numericentity($c, array(0, 0xffff, 0, 0xffff), 'UTF-8');
$c = utf8tohtml($c);
else
$c = mb_encode_numericentity($c, array(0, 0xffff, 0, 0xffff), 'UTF-8');
}
return implode('', $chars);