summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod.php b/mod.php
index 5697e2b5..8ae4a107 100644
--- a/mod.php
+++ b/mod.php
@@ -24,6 +24,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