forked from GithubBackups/vichan
exit() after redirecting in mod.php
This commit is contained in:
parent
0acad999ea
commit
43de5ae4ca
4
mod.php
4
mod.php
@ -54,8 +54,10 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Redirect (for index pages)
|
// 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']);
|
header('Location: ' . $_GET['r'], true, $_GET['status']);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
// A sort of "cache"
|
// A sort of "cache"
|
||||||
// Stops calling preg_quote and str_replace when not needed; only does it once
|
// Stops calling preg_quote and str_replace when not needed; only does it once
|
||||||
|
Loading…
x
Reference in New Issue
Block a user