summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/post.php b/post.php
index 9fc4be66..e45ad967 100644
--- a/post.php
+++ b/post.php
@@ -429,6 +429,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']) {
@@ -465,11 +471,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);
@@ -691,7 +692,7 @@ if (isset($_POST['delete'])) {
$pdo->quote($board['uri']) . ', ' . (int)$id . ', ' .
$pdo->quote($cite[0]) . ', ' . (int)$cite[1] . ')';
}
- query('INSERT INTO ``cites`` VALUES ' . implode(', ', $insert_rows)) or error(db_error());;
+ query('INSERT INTO ``cites`` VALUES ' . implode(', ', $insert_rows)) or error(db_error());
}
if (!$post['op'] && strtolower($post['email']) != 'sage' && !$thread['sage'] && ($config['reply_limit'] == 0 || $numposts['replies']+1 < $config['reply_limit'])) {