mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-18 02:16:03 +01:00
Add maximum report length
This commit is contained in:
parent
61cdca7207
commit
2a8b69fa77
@ -937,6 +937,9 @@
|
|||||||
// Number of reports you can create at once.
|
// Number of reports you can create at once.
|
||||||
$config['report_limit'] = 3;
|
$config['report_limit'] = 3;
|
||||||
|
|
||||||
|
// Maximum number of characters per report.
|
||||||
|
$config['report_max_length'] = 30;
|
||||||
|
|
||||||
// Allow unfiltered HTML in board subtitle. This is useful for placing icons and links.
|
// Allow unfiltered HTML in board subtitle. This is useful for placing icons and links.
|
||||||
$config['allow_subtitle_html'] = false;
|
$config['allow_subtitle_html'] = false;
|
||||||
|
|
||||||
|
2
post.php
2
post.php
@ -488,7 +488,7 @@ if (isset($_POST['delete'])) {
|
|||||||
$reason = escape_markup_modifiers($_POST['reason']);
|
$reason = escape_markup_modifiers($_POST['reason']);
|
||||||
markup($reason);
|
markup($reason);
|
||||||
|
|
||||||
if (strlen($reason) > 30) {
|
if (mb_strlen($reason) > $config['report_max_length']) {
|
||||||
error($config['error']['toolongreport']);
|
error($config['error']['toolongreport']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user