Handle undefined PATH_INFO value

This commit is contained in:
billz
2025-08-20 08:11:51 -07:00
parent d9e00171b2
commit 5319b9dbbd
3 changed files with 5 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ $pluginManager = \RaspAP\Plugins\PluginManager::getInstance();
// Get the requested page
$extraFooterScripts = array();
$page = $_SERVER['PATH_INFO'];
$page = $_SERVER['PATH_INFO'] ?? '';
// Check if any plugin wants to handle the request
if (!$pluginManager->handlePageAction($page)) {