diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-19 01:19:10 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-19 01:19:10 +1000 |
| commit | f535bbe59eedaafb8030f5a10e3a9da7f5f7a2c6 (patch) | |
| tree | 888beec63b25d60ecb768d3182994fa16e3a315e | |
| parent | cde7da9c4fe07334ea8040c4037a0dac1db50300 (diff) | |
Bugfix: did not purge all antispam inputs
| -rw-r--r-- | inc/functions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php index aa5edddf..d2f207a0 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -857,6 +857,11 @@ function deletePost($id, $error_if_doesnt_exist=true, $rebuild_after=true) { if (!$post['thread']) { // Delete thread HTML page file_unlink($board['dir'] . $config['dir']['res'] . sprintf($config['file_page'], $post['id'])); + + $antispam_query = prepare('DELETE FROM `antispam` WHERE `board` = :board AND `thread` = :thread'); + $antispam_query->bindValue(':board', $board['uri']); + $antispam_query->bindValue(':thread', $post['id']); + $antispam_query->execute() or error(db_error($antispam_query)); } elseif ($query->rowCount() == 1) { // Rebuild thread $rebuild = &$post['thread']; |
