mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-12-26 23:26:47 +01:00
Handle undefined PATH_INFO value
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user