mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated poller/discovery forms to use validate_device_id function
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
$device['device_id'] = $_POST['device_id'];
|
$device['device_id'] = $_POST['device_id'];
|
||||||
$module = 'discover_'.$_POST['discovery_module'];
|
$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');
|
echo('error with data');
|
||||||
exit;
|
exit;
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
$device['device_id'] = $_POST['device_id'];
|
$device['device_id'] = $_POST['device_id'];
|
||||||
$module = 'poll_'.$_POST['poller_module'];
|
$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');
|
echo('error with data');
|
||||||
exit;
|
exit;
|
||||||
|
Reference in New Issue
Block a user