summaryrefslogtreecommitdiff
path: root/inc/anti-bot.php
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-04-19 01:32:02 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-04-19 01:32:02 +1000
commit931c2d679eb62ae87062fe2815452fa21b39a327 (patch)
tree077a21fcde9c1fefae34c585792bae60005f9202 /inc/anti-bot.php
parentf535bbe59eedaafb8030f5a10e3a9da7f5f7a2c6 (diff)
don't use CRC32
Diffstat (limited to 'inc/anti-bot.php')
-rw-r--r--inc/anti-bot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/anti-bot.php b/inc/anti-bot.php
index bf73408b..16793db8 100644
--- a/inc/anti-bot.php
+++ b/inc/anti-bot.php
@@ -190,7 +190,7 @@ function _create_antibot($board, $thread) {
$query->bindValue(':expires', $config['spam']['hidden_inputs_expire']);
$query->execute() or error(db_error($query));
- $query = prepare('INSERT INTO `antispam` VALUES (:board, :thread, CRC32(:hash), UNIX_TIMESTAMP(), NULL, 0)');
+ $query = prepare('INSERT INTO `antispam` VALUES (:board, :thread, :hash, UNIX_TIMESTAMP(), NULL, 0)');
$query->bindValue(':board', $board);
$query->bindValue(':thread', $thread);
$query->bindValue(':hash', $antibot->hash());