From 0378a843738fb73aad5339d7cee8a71c51965680 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Tue, 27 Jan 2026 14:09:53 +0100 Subject: [PATCH] Routing/Fixup * always route requests where page equals page parameter (i.e. /?spell=spell; /?user=user) to BaseResponse * fixes #486 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 9cb4cc2f..6be334f8 100644 --- a/index.php +++ b/index.php @@ -64,7 +64,7 @@ try { $responder = new \StdClass; // 1. try specialized response - if (file_exists('endpoints/'.$pageCall.'/'.$file.'.php')) + if (file_exists('endpoints/'.$pageCall.'/'.$file.'.php') && $pageCall != $file) { require_once 'endpoints/'.$pageCall.'/'.$file.'.php';