diff --git a/inc/config.php b/inc/config.php index b5c8e1b2..63972d07 100644 --- a/inc/config.php +++ b/inc/config.php @@ -900,6 +900,9 @@ // Number of reports you can create at once. $config['report_limit'] = 3; + // Maximum character length of report. + $config['report_max_length'] = 50; + // 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 1388a821..5a2fa32e 100644 --- a/post.php +++ b/post.php @@ -319,8 +319,8 @@ function handle_report(){ if (empty($report)) error($config['error']['noreport']); - if (strlen($report) > 30) - error($config['error']['invalidreport']); + if (strlen($_POST['reason']) > $config['report_max_length']) + error($config['error']['reporttoolong']); if (count($report) > $config['report_limit']) error($config['error']['toomanyreports']); diff --git a/templates/report_delete.html b/templates/report_delete.html index b51534bf..453f9034 100644 --- a/templates/report_delete.html +++ b/templates/report_delete.html @@ -10,7 +10,7 @@
- +