allow posts to be discarded for too many lines
This commit is contained in:
parent
d4a9847b16
commit
b521fdbc3e
2
post.php
2
post.php
|
@ -820,6 +820,8 @@ if (isset($_POST['delete'])) {
|
|||
error(sprintf($config['error']['tooshort_body'], $config['min_body']));
|
||||
if (mb_strlen($post['body']) < $config['min_body_op'] && $post['op'])
|
||||
error(sprintf($config['error']['tooshort_body_op'], $config['min_body_op']));
|
||||
if (!$mod && substr_count($post['body'], "\n") >= $config['max_lines'])
|
||||
error($config['error']['toomanylines']);
|
||||
if (mb_strlen($post['password']) > 20)
|
||||
error(sprintf($config['error']['toolong'], 'password'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user