diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-11-23 15:43:07 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-11-23 15:43:07 +1100 |
| commit | 7ecebe4616ddbbe760d6b30f9225cb6e8ec66c13 (patch) | |
| tree | 87b499e34bbe0257089a89225bc713161b5ee990 /mod.php | |
| parent | 6f36006e2abc3766010d5a87392882f3bb6ad98c (diff) | |
exit() after redirecting in mod.php
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |
