summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_wol_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/services_wol_edit.php')
-rwxr-xr-xusr/local/www/services_wol_edit.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/services_wol_edit.php b/usr/local/www/services_wol_edit.php
index ca31048..437e7bcb 100755
--- a/usr/local/www/services_wol_edit.php
+++ b/usr/local/www/services_wol_edit.php
@@ -56,8 +56,9 @@ if (!is_array($config['wol']['wolentry'])) {
}
$a_wol = &$config['wol']['wolentry'];
-$id = $_GET['id'];
-if (isset($_POST['id']))
+if (is_numericint($_GET['id']))
+ $id = $_GET['id'];
+if (isset($_POST['id']) && is_numericint($_POST['id']))
$id = $_POST['id'];
if (isset($id) && $a_wol[$id]) {
OpenPOWER on IntegriCloud