From 5a86c772f68e3e44635f8bcdb5f37c756a2529d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Fri, 2 Feb 2024 16:29:24 +0100 Subject: [PATCH] exit on redirect --- lib/router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/router.php b/lib/router.php index 0287bcf..948e863 100644 --- a/lib/router.php +++ b/lib/router.php @@ -52,9 +52,9 @@ function initRouter(): bool $routerRequest["tld"] . "/" . $routerRequest["page_name"]; // Redirect with default page name - echo "false"; header("Location: $redirectAddress"); header("RedirHere: $redirectAddress"); + echo "false"; return false; } else{