From 728476ce9938e8d29a35af49398ed948d3ae740c Mon Sep 17 00:00:00 2001 From: RealAngeleno Date: Sun, 25 Jun 2023 05:25:32 -0700 Subject: [PATCH 1/2] Update config.php prevent conflict --- inc/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/config.php b/inc/config.php index 9e8fdb59..61379574 100644 --- a/inc/config.php +++ b/inc/config.php @@ -496,7 +496,7 @@ // Maximum post body length. $config['max_body'] = 1800; // 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. $config['body_truncate'] = 15; // Maximum number of characters to show on the index page. From 5df3ae6606d8fffd9dce686449547507bcb516b6 Mon Sep 17 00:00:00 2001 From: RealAngeleno Date: Sun, 25 Jun 2023 05:26:29 -0700 Subject: [PATCH 2/2] Update post.php --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index c0898cdd..cfea1207 100644 --- a/post.php +++ b/post.php @@ -730,7 +730,7 @@ if (isset($_POST['delete'])) { error(sprintf($config['error']['toolong'], 'subject')); if (!$mod && mb_strlen($post['body']) > $config['max_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']); if (mb_strlen($post['password']) > 20) error(sprintf($config['error']['toolong'], 'password'));