Prevents reports with too many characters

This commit is contained in:
vholmes 2017-02-15 23:07:50 -02:00 committed by discomrade
parent ca8f6baa36
commit ed55ea23ea
2 changed files with 4 additions and 0 deletions

View file

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