diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-09-28 03:54:32 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-09-28 03:54:32 +1000 |
| commit | ac9296169f9b60741552c9566650f63f66820726 (patch) | |
| tree | ef1818042fbb2978861fbdbd53884b4319d22ed4 | |
| parent | a3ba5a284007c3e8ef319a6c8e3acad69f247df3 (diff) | |
Bugfix: B&D "invalid security token" error
| -rw-r--r-- | inc/mod/pages.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index c3693468..ca6a2540 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -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); |
