Skip to content

Commit

Permalink
XSS fix, cont. (#13776)
Browse files Browse the repository at this point in the history
  • Loading branch information
PipoCanaja committed Feb 13, 2022
1 parent 3ac0de1 commit 4f86915
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/html/pages/addhost.inc.php
Expand Up @@ -45,9 +45,9 @@
$snmpver = 'v2c';
$additional = [
'snmp_disable' => 1,
'os' => $_POST['os'] ? $_POST['os_id'] : 'ping',
'hardware' => $_POST['hardware'],
'sysName' => $_POST['sysName'],
'os' => $_POST['os'] ? strip_tags($_POST['os_id']) : 'ping',
'hardware' => strip_tags($_POST['hardware']),
'sysName' => strip_tags($_POST['sysName']),
];
} elseif ($_POST['snmpver'] === 'v2c' || $_POST['snmpver'] === 'v1') {
if ($_POST['community']) {
Expand Down

0 comments on commit 4f86915

Please sign in to comment.