From a213f092ab2abc7d0033044b074a327f28287507 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 25 May 2015 12:02:35 +0200 Subject: inc/functions: merge functions GET and validate_get And make sure all input from $_GET variables are parsed and validated. --- host.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host.php') 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'; require_once 'inc/html.inc.php'; require_once 'inc/collectd.inc.php'; -$host = validate_get(GET('h'), 'h'); -$plugin = validate_get(GET('p'), 'p'); +$host = GET('h'); +$plugin = GET('p'); $selected_plugins = !$plugin ? $CONFIG['overview'] : array($plugin); -- cgit v1.1