Skip to content

Commit

Permalink
Merge pull request from GHSA-rqc8-78cm-85j3
Browse files Browse the repository at this point in the history
Co-authored-by: ishgard <ishgard@njust.edu.cn>
  • Loading branch information
TheWitness and ISHGARD-2 committed Apr 7, 2024
1 parent 0d85e77 commit f946fa5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/html_tree.php
Expand Up @@ -991,6 +991,7 @@ function grow_right_pane_tree($tree_id, $leaf_id, $host_group_data) {
WHERE id = ?',
array($host_group_data_array[1]));

$name = html_escape($name);
$host_group_data_name = '<strong>' . __('Graph Template:'). '</strong> ' . $name;
$graph_template_id = $host_group_data_array[1];
} elseif ($host_group_data_array[0] == 'dq') {
Expand All @@ -999,6 +1000,7 @@ function grow_right_pane_tree($tree_id, $leaf_id, $host_group_data) {
WHERE id = ?',
array($host_group_data_array[1]));

$name = html_escape($name);
$host_group_data_name = '<strong>' . __('Graph Template:') . '</strong> ' . (empty($host_group_data_array[1]) ? __('Non Query Based') : $name);
$data_query_id = $host_group_data_array[1];
} elseif ($host_group_data_array[0] == 'dqi') {
Expand All @@ -1007,6 +1009,7 @@ function grow_right_pane_tree($tree_id, $leaf_id, $host_group_data) {
WHERE id = ?',
array($host_group_data_array[1]));

$name = html_escape($name);
$host_group_data_name = '<strong>' . __('Graph Template:') . '</strong> ' . (empty($host_group_data_array[1]) ? __('Non Query Based') : $name) . '-> ' . (empty($host_group_data_array[2]) ? __('Template Based') : get_formatted_data_query_index($leaf['host_id'], $host_group_data_array[1], $host_group_data_array[2]));
$data_query_id = $host_group_data_array[1];
$data_query_index = $host_group_data_array[2];
Expand Down

0 comments on commit f946fa5

Please sign in to comment.