Bugfix: B&D "invalid security token" error
This commit is contained in:
parent
a3ba5a2840
commit
ac9296169f
@ -927,7 +927,7 @@ function mod_ban_post($board, $delete, $post, $token = false) {
|
||||
if (!hasPermission($config['mod']['delete'], $board))
|
||||
error($config['error']['noaccess']);
|
||||
|
||||
$security_token = make_secure_link_token($board . '/ban' . ($delete ? '&delete' : '') . '/' . $post);
|
||||
$security_token = make_secure_link_token($board . '/ban/' . $post);
|
||||
|
||||
$query = prepare(sprintf('SELECT `ip`, `thread` FROM `posts_%s` WHERE `id` = :id', $board));
|
||||
$query->bindValue(':id', $post);
|
||||
|
Loading…
Reference in New Issue
Block a user