From ac9296169f9b60741552c9566650f63f66820726 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Fri, 28 Sep 2012 03:54:32 +1000 Subject: [PATCH] Bugfix: B&D "invalid security token" error --- inc/mod/pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);