diff options
| author | Pim van den Berg | 2010-01-01 19:36:31 +0100 |
|---|---|---|
| committer | Pim van den Berg | 2010-01-01 19:36:31 +0100 |
| commit | bc31ed0e4647a568a1596cc2e09664675479a70d (patch) | |
| tree | 9670e334534e18a9588e18d3feabbcb3a67e734e /detail.php | |
| parent | add swap_io support (diff) | |
| download | apt-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.php | 11 |
1 files changed, 6 insertions, 5 deletions
| @@ -1,6 +1,7 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | require_once 'conf/common.inc.php'; | 3 | require_once 'conf/common.inc.php'; |
| 4 | require_once 'inc/functions.inc.php'; | ||
| 4 | require_once 'inc/html.inc.php'; | 5 | require_once 'inc/html.inc.php'; |
| 5 | require_once 'inc/collectd.inc.php'; | 6 | require_once 'inc/collectd.inc.php'; |
| 6 | 7 | ||
| @@ -10,11 +11,11 @@ if (empty($_GET['x'])) | |||
| 10 | if (empty($_GET['y'])) | 11 | if (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']; |
