mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-03-09 15:40:18 +00:00
GET Filters
This commit is contained in:
parent
a34541d45d
commit
c083a205ea
1 changed files with 3 additions and 3 deletions
|
@ -6,13 +6,13 @@ include(dirname(__DIR__).'/pages/includes/header.php');
|
|||
|
||||
switch (htmlspecialchars($_GET["type"])) {
|
||||
case "sto":
|
||||
$node = json_decode($q->GET_byid("storages", $_GET['id']), true)['value'];
|
||||
$node = json_decode($q->GET_byid("storages", htmlspecialchars($_GET['id'])), true)['value'];
|
||||
break;
|
||||
case "node":
|
||||
$node = json_decode($q->GET_byid("nodes", $_GET['id']), true)['value'];
|
||||
$node = json_decode($q->GET_byid("nodes", htmlspecialchars($_GET['id'])), true)['value'];
|
||||
break;
|
||||
case "vm":
|
||||
$node = json_decode($q->GET_byid("instances", $_GET['id']), true)['value'];
|
||||
$node = json_decode($q->GET_byid("instances", htmlspecialchars($_GET['id'])), true)['value'];
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue