From 8f78663419b57a31a1459e69a861081ec9916c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Fri, 2 Feb 2024 16:23:31 +0100 Subject: [PATCH] exit on redirect --- lib/router.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/router.php b/lib/router.php index d2f90e3..c3321dc 100644 --- a/lib/router.php +++ b/lib/router.php @@ -51,6 +51,7 @@ function initRouter(): bool $routerRequest["page_name"]; // Redirect with default page name header("Location: $redirectAddress"); + echo "false"; return false; } else{ @@ -60,6 +61,7 @@ function initRouter(): bool if(empty($routerRequest["type"])){ $routerRequest["type"] = "page"; } + echo "true"; return true; } }