forked from leftypol/leftypol
Some SQL and indexes improvements
This commit is contained in:
parent
c567131ca7
commit
b51fc38783
5 changed files with 38 additions and 21 deletions
11
post.php
11
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue