summaryrefslogtreecommitdiff
path: root/inc/anti-bot.php
diff options
context:
space:
mode:
authorMacil Tech <maciltech@gmail.com>2012-08-25 07:52:37 -0600
committerMacil Tech <maciltech@gmail.com>2012-08-25 07:52:37 -0600
commitbec9f21787c7fa183078d3c1defbc795b2e930e5 (patch)
tree5cef310b4dee93eb27468330593b2f799bf3fb5d /inc/anti-bot.php
parentc5ec20684e77456fe9377a8cbf62c78cfb580b64 (diff)
Antibot make_confusing fix
Diffstat (limited to 'inc/anti-bot.php')
-rw-r--r--inc/anti-bot.php5
1 files 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);