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

Commit

Permalink
fix(monitoring): remove double encoding of host name (#6354)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-radev authored and kduret committed Jun 20, 2018
1 parent 3e008d3 commit c9db34e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions www/include/monitoring/external_cmd/popup/popup.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@

require_once realpath(dirname(__FILE__) . "/../../../../../config/centreon.config.php");

require_once _CENTREON_PATH_ . 'vendor/autoload.php';
$smartyDir = _CENTREON_PATH_ . 'vendor/smarty/smarty/';
require_once $smartyDir . 'libs/Smarty.class.php';

require_once _CENTREON_PATH_ . "www/class/centreonSession.class.php";
require_once _CENTREON_PATH_ . "www/class/centreon.class.php";
require_once _CENTREON_PATH_ . "www/class/centreonDB.class.php";
Expand Down Expand Up @@ -66,8 +70,6 @@

define('SMARTY_DIR', _CENTREON_PATH_ . 'GPL_LIB/Smarty/libs/');

require_once SMARTY_DIR . "Smarty.class.php";

$o = htmlentities($_GET['o'], ENT_QUOTES, "UTF-8");
$p = htmlentities($_GET['p'], ENT_QUOTES, "UTF-8");
$cmd = htmlentities($_GET['cmd'], ENT_QUOTES, "UTF-8");
Expand Down
2 changes: 1 addition & 1 deletion www/include/monitoring/status/Services/serviceJS.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ function cmdCallback(cmd) {
document.getElementById(decodeURIComponent(keyz))
) {
if (document.getElementById(decodeURIComponent(keyz)).checked) {
_getVar += '&select[' + encodeURIComponent(keyz) + ']=1';
_getVar += '&select[' + keyz + ']=1';
}
}
}
Expand Down

0 comments on commit c9db34e

Please sign in to comment.