diff options
author | Pim van den Berg | 2015-05-25 12:02:35 +0200 |
---|---|---|
committer | Pim van den Berg | 2015-05-25 12:11:31 +0200 |
commit | a213f092ab2abc7d0033044b074a327f28287507 (patch) | |
tree | aff9cbcc286291d71f05a3bebbaf1b34b6c35c72 /host.php | |
parent | inc/functions: make type argument of validate_get function exactly the same a... (diff) | |
download | apt-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.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,8 +4,8 @@ require_once 'conf/common.inc.php'; | |||
4 | require_once 'inc/html.inc.php'; | 4 | require_once 'inc/html.inc.php'; |
5 | require_once 'inc/collectd.inc.php'; | 5 | require_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 | ||