From 9a1f8e7b8a5405b8ffeb2d44351d023c1c6531b7 Mon Sep 17 00:00:00 2001 From: vholmes Date: Wed, 15 Feb 2017 23:07:50 -0200 Subject: [PATCH] Prevents reports with too many characters --- post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/post.php b/post.php index 26c52c11..a51dc4e0 100644 --- a/post.php +++ b/post.php @@ -294,6 +294,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']);