diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2017-01-17 22:55:46 +0900 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2017-01-17 22:55:46 +0900 |
| commit | d83376f155fb493d6e2303cae200f202161965b7 (patch) | |
| tree | 48adbb4344d394e848e539dbae28117f49dfb6b7 | |
| parent | 9716372fcaa833ebca02d5b3530e956ba0938400 (diff) | |
Add min_body configuration option for post too short check
| -rw-r--r-- | post.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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')); } |
