Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
#3861 fix comment view on host and service detail
Browse files Browse the repository at this point in the history
  • Loading branch information
bsauveton committed Oct 29, 2015
1 parent aef653b commit 0352137
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion www/include/monitoring/objectDetails/hostDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@
}

if (isset($tabCommentHosts)) {
$tpl->assign("tab_comments_host", CentreonUtils::escapeSecure($tabCommentHosts));
$tpl->assign("tab_comments_host", array_map(array("CentreonUtils","escapeSecure"),$tabCommentHosts));
}
$tpl->assign("host_data", $host_status[$host_name]);

Expand Down
2 changes: 1 addition & 1 deletion www/include/monitoring/objectDetails/serviceDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@
$tpl->assign("admin", $is_admin);
$tpl->assign("lcaTopo", $oreon->user->access->topology);
$tpl->assign("count_comments_svc", count($tabCommentServices));
$tpl->assign("tab_comments_svc", CentreonUtils::escapeSecure($tabCommentServices));
$tpl->assign("tab_comments_svc", array_map(array("CentreonUtils","escapeSecure"),$tabCommentServices));
$centreonGraph = new CentreonGraph(session_id(), null, 0, null);
$tpl->assign("flag_graph", $centreonGraph->statusGraphExists($host_id, $service_id));
$tpl->assign("service_id", $service_id);
Expand Down

0 comments on commit 0352137

Please sign in to comment.