From 7ecebe4616ddbbe760d6b30f9225cb6e8ec66c13 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 23 Nov 2011 15:43:07 +1100 Subject: [PATCH] exit() after redirecting in mod.php --- mod.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod.php b/mod.php index 016aed41..4a06dba4 100644 --- a/mod.php +++ b/mod.php @@ -54,8 +54,10 @@ } } else { // Redirect (for index pages) - if(count($_GET) == 2 && isset($_GET['status']) && isset($_GET['r'])) + if(count($_GET) == 2 && isset($_GET['status']) && isset($_GET['r'])) { header('Location: ' . $_GET['r'], true, $_GET['status']); + exit; + } // A sort of "cache" // Stops calling preg_quote and str_replace when not needed; only does it once