forked from leftypol/leftypol
Prevents reports with too many characters
This commit is contained in:
parent
ca8f6baa36
commit
ed55ea23ea
2 changed files with 4 additions and 0 deletions
3
post.php
3
post.php
|
@ -319,6 +319,9 @@ function handle_report(){
|
|||
if (empty($report))
|
||||
error($config['error']['noreport']);
|
||||
|
||||
if (strlen($report) > 30)
|
||||
error($config['error']['invalidreport']);
|
||||
|
||||
if (count($report) > $config['report_limit'])
|
||||
error($config['error']['toomanyreports']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue