mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +01:00
Merge pull request #585 from vichan-devel/RealAngeleno-patch-5
Change variable for max lines to prevent conflict
This commit is contained in:
commit
e912ee24ec
@ -496,7 +496,7 @@
|
|||||||
// Maximum post body length.
|
// Maximum post body length.
|
||||||
$config['max_body'] = 1800;
|
$config['max_body'] = 1800;
|
||||||
// Maximum number of lines allowed in a post.
|
// Maximum number of lines allowed in a post.
|
||||||
$config['max_lines'] = 100;
|
$config['maximum_lines'] = 100;
|
||||||
// Maximum number of post body lines to show on the index page.
|
// Maximum number of post body lines to show on the index page.
|
||||||
$config['body_truncate'] = 15;
|
$config['body_truncate'] = 15;
|
||||||
// Maximum number of characters to show on the index page.
|
// Maximum number of characters to show on the index page.
|
||||||
|
2
post.php
2
post.php
@ -730,7 +730,7 @@ if (isset($_POST['delete'])) {
|
|||||||
error(sprintf($config['error']['toolong'], 'subject'));
|
error(sprintf($config['error']['toolong'], 'subject'));
|
||||||
if (!$mod && mb_strlen($post['body']) > $config['max_body'])
|
if (!$mod && mb_strlen($post['body']) > $config['max_body'])
|
||||||
error($config['error']['toolong_body']);
|
error($config['error']['toolong_body']);
|
||||||
if (!$mod && substr_count($post['body'], "\n") >= $config['max_lines'])
|
if (!$mod && substr_count($post['body'], "\n") >= $config['maximum_lines'])
|
||||||
error($config['error']['toomanylines']);
|
error($config['error']['toomanylines']);
|
||||||
if (mb_strlen($post['password']) > 20)
|
if (mb_strlen($post['password']) > 20)
|
||||||
error(sprintf($config['error']['toolong'], 'password'));
|
error(sprintf($config['error']['toolong'], 'password'));
|
||||||
|
Loading…
Reference in New Issue
Block a user