Prevents reports with too many characters

This commit is contained in:
vholmes authored and Zankaria committed 2024-03-15 16:34:05 +01:00
1 parent 3ac86a074a
commit 61cdca7207
2 files changed
+5 -1

No files matched your search

+4
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);