summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-11-23 15:43:07 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-11-23 15:43:07 +1100
commit7ecebe4616ddbbe760d6b30f9225cb6e8ec66c13 (patch)
tree87b499e34bbe0257089a89225bc713161b5ee990 /mod.php
parent6f36006e2abc3766010d5a87392882f3bb6ad98c (diff)
exit() after redirecting in mod.php
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php4
1 files changed, 3 insertions, 1 deletions
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