From 2edc6043270c96a5f9578b2c0de2b4a118baf5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Fri, 2 Feb 2024 16:37:15 +0100 Subject: [PATCH] exit on redirect --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 2c4bfce..078d973 100644 --- a/index.php +++ b/index.php @@ -12,7 +12,8 @@ $routerConfig = array(); $routerRequest = array(); loadRouterConfig(); -if(initRouter()) { +$canRender = initRouter(); +if($canRender) { /** @noinspection PhpArrayIsAlwaysEmptyInspection */ session_set_cookie_params(0, '/', "." . $routerRequest["domain"] . "." . $routerRequest["tld"], true, true); session_start();