mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-18 02:16:03 +01:00
allow posts to be discarded for too many lines
This commit is contained in:
parent
727e8723f0
commit
bb59e907b1
4
post.php
4
post.php
@ -728,8 +728,10 @@ if (isset($_POST['delete'])) {
|
||||
error(sprintf($config['error']['toolong'], 'email'));
|
||||
if (mb_strlen($post['subject']) > 100)
|
||||
error(sprintf($config['error']['toolong'], 'subject'));
|
||||
if (!$mod && mb_strlen($post['body']) > $config['max_body'])
|
||||
if (!$mod && substr_count($post['body']) > $config['max_body'])
|
||||
error($config['error']['toolong_body']);
|
||||
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