mirror of
https://github.com/unraid/webgui.git
synced 2026-01-06 01:29:54 -06:00
fix: Install Key class self instantiate with GET request
This commit is contained in:
@@ -73,3 +73,11 @@ class KeyInstaller
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$isGetRequest = !empty($_SERVER) && isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'GET';
|
||||
$getHasUrlParam = $_GET !== null && !empty($_GET) && isset($_GET['url']);
|
||||
|
||||
if ($isGetRequest && $getHasUrlParam) {
|
||||
$keyInstaller = new KeyInstaller();
|
||||
$keyInstaller->installKey();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user