Prevents reports with too many characters

This commit is contained in:
vholmes 2017-02-15 23:07:50 -02:00 committed by -
parent 79575c84cb
commit 9a1f8e7b8a

View File

@ -295,6 +295,9 @@ if (isset($_POST['delete'])) {
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']);