aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/host.php
diff options
context:
space:
mode:
authorPim van den Berg2015-05-25 12:02:35 +0200
committerPim van den Berg2015-05-25 12:11:31 +0200
commita213f092ab2abc7d0033044b074a327f28287507 (patch)
treeaff9cbcc286291d71f05a3bebbaf1b34b6c35c72 /host.php
parentinc/functions: make type argument of validate_get function exactly the same a... (diff)
downloadapt-panopticon_cgp-a213f092ab2abc7d0033044b074a327f28287507.zip
apt-panopticon_cgp-a213f092ab2abc7d0033044b074a327f28287507.tar.gz
apt-panopticon_cgp-a213f092ab2abc7d0033044b074a327f28287507.tar.bz2
apt-panopticon_cgp-a213f092ab2abc7d0033044b074a327f28287507.tar.xz
inc/functions: merge functions GET and validate_get
And make sure all input from $_GET variables are parsed and validated.
Diffstat (limited to 'host.php')
-rw-r--r--host.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/host.php b/host.php
index 2ba662d..f411b78 100644
--- a/host.php
+++ b/host.php
@@ -4,8 +4,8 @@ require_once 'conf/common.inc.php';
4require_once 'inc/html.inc.php'; 4require_once 'inc/html.inc.php';
5require_once 'inc/collectd.inc.php'; 5require_once 'inc/collectd.inc.php';
6 6
7$host = validate_get(GET('h'), 'h'); 7$host = GET('h');
8$plugin = validate_get(GET('p'), 'p'); 8$plugin = GET('p');
9 9
10$selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin); 10$selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin);
11 11