Skip to content

Commit

Permalink
Fix double escaping sysname in device dependencies
Browse files Browse the repository at this point in the history
I double checked that we aren't missing any escapes elsewhere on sysname and it looks good.
  • Loading branch information
murrant committed Sep 29, 2024
1 parent e08571c commit c921177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/html/forms/get-host-dependencies.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
}

$hostname = format_hostname($myrow);
$sysname = htmlspecialchars(($hostname == $myrow['sysName']) ? $myrow['hostname'] : $myrow['sysName']);
$sysname = $hostname == $myrow['sysName'] ? $myrow['hostname'] : $myrow['sysName'];
array_push($res_arr, ['deviceid' => $myrow['id'], 'hostname' => $hostname, 'sysname' => $sysname, 'parent' => $parent, 'parentid' => $myrow['parentid']]);
}
$status = ['current' => $_POST['current'], 'rowCount' => $_POST['rowCount'], 'rows' => $res_arr, 'total' => $rec_count];
Expand Down

0 comments on commit c921177

Please sign in to comment.