aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin.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 /plugin.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 '')
-rw-r--r--plugin.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin.php b/plugin.php
index 054c559..54f75fb 100644
--- a/plugin.php
+++ b/plugin.php
@@ -1,10 +1,11 @@
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';
5 6
6$host = $_GET['h']; 7$host = validate_get($_GET['h'], 'host');
7$plugin = $_GET['p']; 8$plugin = validate_get($_GET['p'], 'plugin');
8 9
9if ($_GET['a'] == 'del') { 10if ($_GET['a'] == 'del') {
10 plugin_header($host, $plugin, 1); 11 plugin_header($host, $plugin, 1);