From bc31ed0e4647a568a1596cc2e09664675479a70d Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Fri, 1 Jan 2010 19:36:31 +0100 Subject: better validation of possible user input (get) --- host.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host.php') diff --git a/host.php b/host.php index 42179f3..7dd509a 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 = $_GET['h']; -$splugin = $_GET['p']; +$host = validate_get($_GET['h'], 'host'); +$splugin = validate_get($_GET['p'], 'plugin'); html_start(); -- cgit v1.1