diff --git a/library/ajax/posts.php b/library/ajax/posts.php index 2a6c8dc0..368a12aa 100644 --- a/library/ajax/posts.php +++ b/library/ajax/posts.php @@ -138,6 +138,13 @@ switch($this->request['type']) { if ($text != $post['post_text']) { + if ($bb_cfg['max_post_length']) + { + if (mb_strlen($text, 'UTF-8') > $bb_cfg['max_post_length']) + { + $this->ajax_die(sprintf($lang['MAX_POST_LEN_PER_POST'], $bb_cfg['max_post_length'])); + } + } if ($bb_cfg['max_smilies']) { $count_smilies = substr_count(bbcode2html($text), '