aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/detail.php
diff options
context:
space:
mode:
authorPim van den Berg2010-01-01 19:36:31 +0100
committerPim van den Berg2010-01-01 19:36:31 +0100
commitbc31ed0e4647a568a1596cc2e09664675479a70d (patch)
tree9670e334534e18a9588e18d3feabbcb3a67e734e /detail.php
parentadd swap_io support (diff)
downloadapt-panopticon_cgp-bc31ed0e4647a568a1596cc2e09664675479a70d.zip
apt-panopticon_cgp-bc31ed0e4647a568a1596cc2e09664675479a70d.tar.gz
apt-panopticon_cgp-bc31ed0e4647a568a1596cc2e09664675479a70d.tar.bz2
apt-panopticon_cgp-bc31ed0e4647a568a1596cc2e09664675479a70d.tar.xz
better validation of possible user input (get)
Diffstat (limited to 'detail.php')
-rw-r--r--detail.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/detail.php b/detail.php
index e10fae3..d153768 100644
--- a/detail.php
+++ b/detail.php
@@ -1,6 +1,7 @@
1<?php 1<?php
2 2
3require_once 'conf/common.inc.php'; 3require_once 'conf/common.inc.php';
4require_once 'inc/functions.inc.php';
4require_once 'inc/html.inc.php'; 5require_once 'inc/html.inc.php';
5require_once 'inc/collectd.inc.php'; 6require_once 'inc/collectd.inc.php';
6 7
@@ -10,11 +11,11 @@ if (empty($_GET['x']))
10if (empty($_GET['y'])) 11if (empty($_GET['y']))
11 $_GET['y'] = $CONFIG['detail-heigth']; 12 $_GET['y'] = $CONFIG['detail-heigth'];
12 13
13$host = $_GET['h']; 14$host = validate_get($_GET['h'], 'host');
14$plugin = $_GET['p']; 15$plugin = validate_get($_GET['p'], 'plugin');
15$pinstance = $_GET['pi']; 16$pinstance = validate_get($_GET['pi'], 'pinstance');
16$type = $_GET['t']; 17$type = validate_get($_GET['t'], 'type');
17$tinstance = $_GET['ti']; 18$tinstance = validate_get($_GET['ti'], 'tinstance');
18$width = $_GET['x']; 19$width = $_GET['x'];
19$heigth = $_GET['y']; 20$heigth = $_GET['y'];
20$seconds = $_GET['s']; 21$seconds = $_GET['s'];