From bec9f21787c7fa183078d3c1defbc795b2e930e5 Mon Sep 17 00:00:00 2001 From: Macil Tech Date: Sat, 25 Aug 2012 07:52:37 -0600 Subject: [PATCH] Antibot make_confusing fix --- inc/anti-bot.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/anti-bot.php b/inc/anti-bot.php index ed09f8ac..716e301c 100644 --- a/inc/anti-bot.php +++ b/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);