From b41a4a6ac7392175064c56dcc4d16cab66f541ab Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Tue, 30 Nov 2010 23:12:54 +1100 Subject: Check if thread exists before posting. --- post.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'post.php') diff --git a/post.php b/post.php index d5cb9d13..bdc4819f 100644 --- a/post.php +++ b/post.php @@ -83,6 +83,8 @@ sql_open(); if(!openBoard($post['board'])) error(ERROR_NOBOARD); + if(!$OP && !threadExists($post['thread'])) + error(ERROR_NONEXISTANT); $trip = generate_tripcode($post['name']); $post['name'] = $trip[0]; -- cgit v1.3