diff --git a/inc/config.php b/inc/config.php index 113555b3..c55163ab 100644 --- a/inc/config.php +++ b/inc/config.php @@ -937,6 +937,9 @@ // Number of reports you can create at once. $config['report_limit'] = 3; + // Maximum number of characters per report. + $config['report_max_length'] = 30; + // Allow unfiltered HTML in board subtitle. This is useful for placing icons and links. $config['allow_subtitle_html'] = false; diff --git a/post.php b/post.php index 081f55d3..0d9baa07 100644 --- a/post.php +++ b/post.php @@ -488,7 +488,7 @@ if (isset($_POST['delete'])) { $reason = escape_markup_modifiers($_POST['reason']); markup($reason); - if (strlen($reason) > 30) { + if (mb_strlen($reason) > $config['report_max_length']) { error($config['error']['toolongreport']); }