diff options
| author | Michael Walker <mike@barrucadu.co.uk> | 2015-05-10 02:56:48 +0100 |
|---|---|---|
| committer | Michael Walker <mike@barrucadu.co.uk> | 2015-05-10 02:56:48 +0100 |
| commit | 4184fdec6ec3db4d80a0d429f1a3c0dae1ae2675 (patch) | |
| tree | 0c010d50e670b50bbac66b94b6efb5b88a476efd /mod.php | |
| parent | 9ae357facb86006f3d2087883e087d72b4e58cb9 (diff) | |
Pass the thread ID when banning/deleting
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |
