From b0f6e7cf35666225472402fe4aeb71ed2e2b3376 Mon Sep 17 00:00:00 2001 From: laf Date: Thu, 3 Jul 2014 20:38:28 +0100 Subject: [PATCH] Updated poller/discovery forms to use validate_device_id function --- html/forms/discovery-module-update.inc.php | 2 +- html/forms/poller-module-update.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/html/forms/discovery-module-update.inc.php b/html/forms/discovery-module-update.inc.php index 224657ae5..df5a60dab 100644 --- a/html/forms/discovery-module-update.inc.php +++ b/html/forms/discovery-module-update.inc.php @@ -5,7 +5,7 @@ $device['device_id'] = $_POST['device_id']; $module = 'discover_'.$_POST['discovery_module']; -if(!isset($module) && !isset($device_id) && !is_numeric($device_id)) +if(!isset($module) && validate_device_id($device['device_id']) === false) { echo('error with data'); exit; diff --git a/html/forms/poller-module-update.inc.php b/html/forms/poller-module-update.inc.php index c9d07cf83..8b686e610 100644 --- a/html/forms/poller-module-update.inc.php +++ b/html/forms/poller-module-update.inc.php @@ -5,7 +5,7 @@ $device['device_id'] = $_POST['device_id']; $module = 'poll_'.$_POST['poller_module']; -if(!isset($module) && !isset($device_id) && !is_numeric($device_id)) +if(!isset($module) && validate_device_id($device['device_id']) === false) { echo('error with data'); exit;