forked from Adleraci/adlerka.top
exit on redirect
This commit is contained in:
@@ -51,7 +51,6 @@ function initRouter(): bool
|
||||
$routerRequest["page_name"];
|
||||
// Redirect with default page name
|
||||
header("Location: $redirectAddress");
|
||||
exit();
|
||||
}
|
||||
else{
|
||||
if($_SERVER["REQUEST_METHOD"] == "POST"){
|
||||
@@ -61,7 +60,7 @@ function initRouter(): bool
|
||||
$routerRequest["type"] = "page";
|
||||
}
|
||||
}
|
||||
|
||||
echo $needsRedirect;
|
||||
return !$needsRedirect;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user