From 4184fdec6ec3db4d80a0d429f1a3c0dae1ae2675 Mon Sep 17 00:00:00 2001 From: Michael Walker Date: Sun, 10 May 2015 02:56:48 +0100 Subject: Pass the thread ID when banning/deleting --- mod.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod.php') diff --git a/mod.php b/mod.php index 5428e84d..434853dc 100644 --- a/mod.php +++ b/mod.php @@ -23,6 +23,12 @@ if (get_magic_quotes_gpc()) { $query = isset($_SERVER['QUERY_STRING']) ? rawurldecode($_SERVER['QUERY_STRING']) : ''; +// If there's a thread parameter (eg, for returning to after enacting a ban) +// drop it from the $query. +if(isset($_GET['thread'])) { + $query = explode("&thread=", $query)[0]; +} + $pages = array( '' => ':?/', // redirect to dashboard '/' => 'dashboard', // dashboard -- cgit v1.3