Merge pull request #269 from laf/issue-laf-8

Updated poller/discovery forms to use validate_device_id function
This commit is contained in:
Paul Gear
2014-07-16 22:09:36 +10:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;