Fix 387ebe9c0c , extract limit to variable

This commit is contained in:
discomrade 2021-07-12 04:04:59 -02:00
parent af889e8941
commit f575691fc4
3 changed files with 6 additions and 3 deletions

View file

@ -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']);