forked from leftypol/leftypol
Fix 387ebe9c0c
, extract limit to variable
This commit is contained in:
parent
af889e8941
commit
f575691fc4
3 changed files with 6 additions and 3 deletions
4
post.php
4
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']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue