summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/post.php b/post.php
index bbd0c628..c3dd9030 100644
--- a/post.php
+++ b/post.php
@@ -730,6 +730,8 @@ 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 && mb_strlen($post['body']) > 0 && mb_strlen($post['body']) < $config['min_body'])
+ error($config['error']['tooshort_body']);
if (mb_strlen($post['password']) > 20)
error(sprintf($config['error']['toolong'], 'password'));
}