summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-04-19 01:38:35 +1000
committerMichael Save <savetheinternet@tinyboard.org>2012-04-19 01:39:14 +1000
commit163c11d001614253b147da0191b593e13be0de42 (patch)
tree6a47dd1c4078429b471c7a67b8b40d457eab1cee
parent931c2d679eb62ae87062fe2815452fa21b39a327 (diff)
Bugfix: s/CRC32//
-rw-r--r--inc/anti-bot.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/anti-bot.php b/inc/anti-bot.php
index 16793db8..7cf9220b 100644
--- a/inc/anti-bot.php
+++ b/inc/anti-bot.php
@@ -248,7 +248,7 @@ function checkSpam(array $extra_salt = array()) {
if ($hash != $_hash)
return true;
- $query = prepare('UPDATE `antispam` SET `passed` = `passed` + 1 WHERE `hash` = CRC32(:hash)');
+ $query = prepare('UPDATE `antispam` SET `passed` = `passed` + 1 WHERE `hash` = :hash');
$query->bindValue(':hash', $hash);
$query->execute() or error(db_error($query));
if ($query->rowCount() == 0) {
@@ -256,7 +256,7 @@ function checkSpam(array $extra_salt = array()) {
return true;
}
- $query = prepare('SELECT `passed` FROM `antispam` WHERE `hash` = CRC32(:hash)');
+ $query = prepare('SELECT `passed` FROM `antispam` WHERE `hash` = :hash');
$query->bindValue(':hash', $hash);
$query->execute() or error(db_error($query));
$passed = $query->fetchColumn(0);