Browse Source

Merge pull request #68 from Macil/mcfix

Antibot make_confusing fix
pull/40/head
Michael 12 years ago
parent
commit
4d37fb761f
  1. 5
      inc/anti-bot.php

5
inc/anti-bot.php

@ -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);

Loading…
Cancel
Save