allow posts to be discarded for too many lines

This commit is contained in:
RealAngeleno 2023-05-20 15:38:40 -07:00 committed by -
parent d4a9847b16
commit b521fdbc3e

View File

@ -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'));
}