diff --git a/www/include/monitoring/objectDetails/hostDetails.php b/www/include/monitoring/objectDetails/hostDetails.php index b1fddebedc6..ce29be9e41c 100644 --- a/www/include/monitoring/objectDetails/hostDetails.php +++ b/www/include/monitoring/objectDetails/hostDetails.php @@ -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]); diff --git a/www/include/monitoring/objectDetails/serviceDetails.php b/www/include/monitoring/objectDetails/serviceDetails.php index 71d880ddfa9..258a69ea418 100644 --- a/www/include/monitoring/objectDetails/serviceDetails.php +++ b/www/include/monitoring/objectDetails/serviceDetails.php @@ -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);