diff --git a/includes/html/forms/get-host-dependencies.inc.php b/includes/html/forms/get-host-dependencies.inc.php index 3d4281977c..960574db37 100644 --- a/includes/html/forms/get-host-dependencies.inc.php +++ b/includes/html/forms/get-host-dependencies.inc.php @@ -73,7 +73,7 @@ if (! Auth::user()->hasGlobalAdmin()) { } $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];