From a90d1d242a244305ee153813cdf6fc40c8309468 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Fri, 12 Dec 2025 15:16:03 +0100 Subject: [PATCH] Misc/Fixup * the first GET param, the one the page view is derived from, should not be an array --- index.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 76f2819f..4c267ea9 100644 --- a/index.php +++ b/index.php @@ -13,7 +13,14 @@ $pageParam = ''; parse_str(parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY), $query); foreach ($query as $page => $param) { - // fix page calls - pages like saerch use the page call directly and expect it as lower case + // could be an array + if (!is_string($param)) + { + $pageCall = ''; // just .. fail + break; + } + + // fix page calls - pages like search use the page call directly and expect it as lower case if (preg_match('/[A-Z]/', $page)) { $url = str_replace('?'.$page.'=', '?'.Util::lower($page).'=', $_SERVER['REQUEST_URI']);