From d8732d3d3063908c95a690fb6951e1fab99f68ad Mon Sep 17 00:00:00 2001 From: James Franco Date: Sat, 17 Jun 2023 22:20:05 -0500 Subject: [PATCH] fix incorrect function call in body length check --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 54e38ea5..c0898cdd 100644 --- a/post.php +++ b/post.php @@ -728,7 +728,7 @@ if (isset($_POST['delete'])) { error(sprintf($config['error']['toolong'], 'email')); if (mb_strlen($post['subject']) > 100) error(sprintf($config['error']['toolong'], 'subject')); - if (!$mod && substr_count($post['body']) > $config['max_body']) + if (!$mod && mb_strlen($post['body']) > $config['max_body']) error($config['error']['toolong_body']); if (!$mod && substr_count($post['body'], "\n") >= $config['max_lines']) error($config['error']['toomanylines']);