Prevents reports with too many characters
This commit is contained in:
parent
79575c84cb
commit
9a1f8e7b8a
3
post.php
3
post.php
|
@ -295,6 +295,9 @@ if (isset($_POST['delete'])) {
|
||||||
if (empty($report))
|
if (empty($report))
|
||||||
error($config['error']['noreport']);
|
error($config['error']['noreport']);
|
||||||
|
|
||||||
|
if (strlen($report) > 30)
|
||||||
|
error($config['error']['invalidreport']);
|
||||||
|
|
||||||
if (count($report) > $config['report_limit'])
|
if (count($report) > $config['report_limit'])
|
||||||
error($config['error']['toomanyreports']);
|
error($config['error']['toomanyreports']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user