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

Commit

Permalink
fix(conf) fix encoding in template service listing (#11558)
Browse files Browse the repository at this point in the history
* fix encoding

* remove useless function
  • Loading branch information
a-launois committed Aug 11, 2022
1 parent c03f301 commit ca0bddf
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@

$o = "";

$search = filter_var(
$_POST['searchST'] ?? $_GET['searchST'] ?? $centreon->historySearch[$url]['search'] ?? '',
FILTER_SANITIZE_STRING
);
$search = htmlspecialchars($_POST['searchST'] ?? $_GET['searchST'] ?? $centreon->historySearch[$url]['search'] ?? '');

$displayLocked = filter_var(
$_POST['displayLocked'] ?? $_GET['displayLocked'] ?? 'off',
Expand Down Expand Up @@ -233,11 +230,11 @@
$elemArr[$i] = array(
"MenuClass" => "list_" . $style,
"RowMenu_select" => $selectedElements->toHtml(),
"RowMenu_desc" => CentreonUtils::escapeSecure($service["service_description"]),
"RowMenu_alias" => CentreonUtils::escapeSecure($service["service_alias"]),
"RowMenu_parent" => CentreonUtils::escapeSecure($tplStr),
"RowMenu_desc" => htmlentities($service["service_description"]),
"RowMenu_alias" => htmlentities($service["service_alias"]),
"RowMenu_parent" => htmlentities($tplStr),
"RowMenu_icon" => $svc_icon,
"RowMenu_retry" => CentreonUtils::escapeSecure(
"RowMenu_retry" => htmlentities(
"$normal_check_interval $normal_units / $retry_check_interval $retry_units"
),
"RowMenu_attempts" => getMyServiceField($service['service_id'], "service_max_check_attempts"),
Expand Down

0 comments on commit ca0bddf

Please sign in to comment.