Merge pull request #215 from antedeguemon/master

Prevents reports with too many characters
This commit is contained in:
Marcin Łabanowski authored and GitHub committed 2017-07-23 17:55:22 +02:00
commit 3e23c028de
2 files changed
+4

No files matched your search

+3
View File
@@ -287,6 +287,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']);