From: Valerie Pond Date: Sun, 15 Jan 2023 21:46:20 +0000 (+0000) Subject: Fix even more X-Git-Tag: 0.9~447 X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/commitdiff_plain/7720c0cbff2714df672568d3366bb7b2ac1a97c1 Fix even more --- diff --git a/header.php b/header.php index ebc4c1c..86fd721 100644 --- a/header.php +++ b/header.php @@ -34,7 +34,8 @@ $active_page = NULL; foreach ($pages as $name => $page) { $script = $_SERVER['SCRIPT_FILENAME']; - if ((str_ends_with($script, BASE_URL . "index.php") && BASE_URL != "/") || !strlen($page)) + $tok = split($script, "/"); + if ((str_ends_with($script, BASE_URL . "index.php") && !strlen($tok[0])) || !strlen($page)) { $active_page = ""; }