diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-19 01:38:35 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-19 01:38:42 +1000 |
| commit | a84c948074ef6693fb356a7b3441053859629372 (patch) | |
| tree | a282941b50145822451da124d25ba4cf6b0a9cec /inc | |
| parent | 2c47c2d994adfb71b0f938640e95592d7d1567ac (diff) | |
Bugfix: s/CRC32//
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/anti-bot.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/anti-bot.php b/inc/anti-bot.php index 4509505e..3959b054 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); |
