Updated poller/discovery forms to use validate_device_id function

This commit is contained in:
laf
2014-07-03 20:38:28 +01:00
parent 72c3e3e3c9
commit b0f6e7cf35
2 changed files with 2 additions and 2 deletions

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;