markup modifiers: there was a plan for adding markup to ban reasons, but assignment was missing; escape markup there too
This commit is contained in:
parent
d7ea47a91f
commit
ce2af291b0
@ -61,7 +61,8 @@ function ban($mask, $reason, $length, $board) {
|
|||||||
$query->bindValue(':mod', $mod['id']);
|
$query->bindValue(':mod', $mod['id']);
|
||||||
$query->bindValue(':time', time());
|
$query->bindValue(':time', time());
|
||||||
if ($reason !== '') {
|
if ($reason !== '') {
|
||||||
markup($reason);
|
$reason = escape_markup_modifiers($reason);
|
||||||
|
$reason = markup($reason);
|
||||||
$query->bindValue(':reason', $reason);
|
$query->bindValue(':reason', $reason);
|
||||||
} else
|
} else
|
||||||
$query->bindValue(':reason', null, PDO::PARAM_NULL);
|
$query->bindValue(':reason', null, PDO::PARAM_NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user