exit on redirect

This commit is contained in:
2024-02-02 16:18:54 +01:00
parent 033ab0cffd
commit b3b855d505
2 changed files with 1 additions and 3 deletions

View File

@@ -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;
}