1
0
Fork 0
mirror of https://github.com/ThomasGsp/HyperProxmox.git synced 2025-03-09 15:40:18 +00:00

GET Filters

This commit is contained in:
Tlams 2018-02-23 13:46:26 +00:00
parent a34541d45d
commit c083a205ea

View file

@ -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;
}