2011-12-08 Koichiro Kikuchi <koichiro@rworks.jp>
* extensions/snmp_explorer.php: Call io_safe_input() for module name and description when creating module. * include/functions_io.php: spaces to tabs. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5242 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
7cd7aeae60
commit
ea5f78023b
|
@ -1,3 +1,9 @@
|
|||
2011-12-08 Koichiro Kikuchi <koichiro@rworks.jp>
|
||||
|
||||
* extensions/snmp_explorer.php: Call io_safe_input() for
|
||||
module name and description when creating module.
|
||||
* include/functions_io.php: spaces to tabs.
|
||||
|
||||
2011-12-07 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_groups.php
|
||||
|
|
|
@ -202,12 +202,12 @@ function snmp_explorer() {
|
|||
$module_type = 15;
|
||||
|
||||
$values['id_tipo_modulo'] = $module_type;
|
||||
$values['descripcion'] = "(" . $ip_target." - ".$name . ") " . $interfaces[$id]['ifDescr']['value'];
|
||||
$values['descripcion'] = io_safe_input("(" . $ip_target." - ".$name . ") " . $interfaces[$id]['ifDescr']['value']);
|
||||
|
||||
$values['snmp_oid'] = $oid;
|
||||
$values['id_modulo'] = 2;
|
||||
|
||||
$result = modules_create_agent_module ($id_agent, $name, $values);
|
||||
$result = modules_create_agent_module ($id_agent, io_safe_input($name), $values);
|
||||
|
||||
if(is_error($result)) {
|
||||
if(!isset($errors[$result])) {
|
||||
|
|
Loading…
Reference in New Issue