Prevents reports with too many characters

This commit is contained in:
vholmes
2017-02-15 23:07:50 -02:00
committed by Zankaria
parent 3ac86a074a
commit 61cdca7207
2 changed files with 5 additions and 1 deletions

View File

@@ -488,6 +488,10 @@ if (isset($_POST['delete'])) {
$reason = escape_markup_modifiers($_POST['reason']);
markup($reason);
if (strlen($reason) > 30) {
error($config['error']['toolongreport']);
}
foreach ($report as &$id) {
$query = prepare(sprintf("SELECT `id`, `thread` FROM ``posts_%s`` WHERE `id` = :id", $board['uri']));
$query->bindValue(':id', $id, PDO::PARAM_INT);