mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch '1464-error-in-networkmap-with-weird-agent-names-dev' into 'develop'
Added safe input to agent name See merge request artica/pandorafms!996
This commit is contained in:
commit
8ebada6dbf
@ -1060,8 +1060,8 @@ function networkmap_create_agent_node ($agent, $simple = 0, $font_size = 10, $cu
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Short name
|
// Short name
|
||||||
$name = $agent["nombre"];
|
$name = io_safe_output($agent["nombre"]);
|
||||||
if ($cut_names) {
|
if ((strlen ($name) > 16) && ($cut_names)) {
|
||||||
$name = ui_print_truncate_text($name, 16, false, true, false);
|
$name = ui_print_truncate_text($name, 16, false, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1111,7 +1111,7 @@ function networkmap_create_agent_node ($agent, $simple = 0, $font_size = 10, $cu
|
|||||||
}
|
}
|
||||||
|
|
||||||
$node = "\n" . $agent['id_node'].' [ parent="' . $agent['id_parent'] . '", color="'.$status_color.'", fontsize='.$font_size.', style="filled", fixedsize=true, width=0.40, height=0.40, label=<<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD>' . $img_node . '</TD></TR>
|
$node = "\n" . $agent['id_node'].' [ parent="' . $agent['id_parent'] . '", color="'.$status_color.'", fontsize='.$font_size.', style="filled", fixedsize=true, width=0.40, height=0.40, label=<<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD>' . $img_node . '</TD></TR>
|
||||||
<TR><TD>'.$name.'</TD></TR></TABLE>>,
|
<TR><TD>'.io_safe_input($name).'</TD></TR></TABLE>>,
|
||||||
shape="doublecircle", URL="'.$url.'",
|
shape="doublecircle", URL="'.$url.'",
|
||||||
tooltip="' . $url_tooltip . '"];' . "\n";
|
tooltip="' . $url_tooltip . '"];' . "\n";
|
||||||
}
|
}
|
||||||
@ -1174,7 +1174,7 @@ function networkmap_create_module_group_node ($module_group, $simple = 0, $font_
|
|||||||
'", fontsize='.$font_size.', style="filled", ' .
|
'", fontsize='.$font_size.', style="filled", ' .
|
||||||
'fixedsize=true, width=0.30, height=0.30, ' .
|
'fixedsize=true, width=0.30, height=0.30, ' .
|
||||||
'label=<<TABLE data-id_agent="' . $module_group['id_agent'] . '" data-status="' . $module_group['status'] . '" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD>' .
|
'label=<<TABLE data-id_agent="' . $module_group['id_agent'] . '" data-status="' . $module_group['status'] . '" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD>' .
|
||||||
$module_group['name'] . '</TD></TR></TABLE>>,
|
io_safe_output($module_group['name']) . '</TD></TR></TABLE>>,
|
||||||
shape="square", URL="' . $url . '",
|
shape="square", URL="' . $url . '",
|
||||||
tooltip="' . $url_tooltip . '"];';
|
tooltip="' . $url_tooltip . '"];';
|
||||||
}
|
}
|
||||||
@ -1268,7 +1268,7 @@ function networkmap_create_module_node ($module, $simple = 0, $font_size = 10, $
|
|||||||
'fixedsize=true, width=0.30, height=0.30, ' .
|
'fixedsize=true, width=0.30, height=0.30, ' .
|
||||||
'label=<<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD>' .
|
'label=<<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD>' .
|
||||||
$img_node . '</TD></TR>
|
$img_node . '</TD></TR>
|
||||||
<TR><TD>' . $module['nombre'] . '</TD></TR></TABLE>>,
|
<TR><TD>' . io_safe_output($module['nombre']) . '</TD></TR></TABLE>>,
|
||||||
shape="circle", URL="' . $url . '",
|
shape="circle", URL="' . $url . '",
|
||||||
tooltip="' . $url_tooltip . '"];';
|
tooltip="' . $url_tooltip . '"];';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user