From b51fc38783c1b93f1667ea4fb41a077de66dad49 Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Sun, 1 Sep 2013 02:04:42 +1000 Subject: Some SQL and indexes improvements --- post.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'post.php') diff --git a/post.php b/post.php index 864438b1..deebe668 100644 --- a/post.php +++ b/post.php @@ -427,6 +427,12 @@ if (isset($_POST['delete'])) { error(sprintf($config['error']['toolong'], 'password')); wordfilters($post['body']); + + // Check for a flood + if (!hasPermission($config['mod']['flood'], $board['uri']) && checkFlood($post)) { + error($config['error']['flood']); + } + $post['body'] = escape_markup_modifiers($post['body']); if ($mod && isset($post['raw']) && $post['raw']) { @@ -463,11 +469,6 @@ if (isset($_POST['delete'])) { $post['tracked_cites'] = markup($post['body'], true); - // Check for a flood - if (!hasPermission($config['mod']['flood'], $board['uri']) && checkFlood($post)) { - error($config['error']['flood']); - } - require_once 'inc/filters.php'; do_filters($post); -- cgit v1.3