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:34:00 +1000 |
| commit | 1d93aa51b09038485a7d8949bd94cfa02d0d4aed (patch) | |
| tree | a5b98ed5d3339a272247a527fbf484aac4387bee /inc | |
| parent | de347f03875f083e5ab44787387f0507fd453a8c (diff) | |
Bugfix: did not purge all antispam inputs
Diffstat (limited to 'inc')
| -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 1d10c09a..da22a094 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -860,6 +860,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']; |
