From 033ab0cffddbb767f98211fd2fff5562f5d5a7c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Fri, 2 Feb 2024 16:00:21 +0100 Subject: [PATCH] exit on redirect --- lib/router.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/router.php b/lib/router.php index 710c41c..1558e68 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"); + exit(); } else{ if($_SERVER["REQUEST_METHOD"] == "POST"){