Merge branch 'ent-9231-grave-problema-seguridad-vista-de-eventos-metaconsola' into 'develop'

fix events pandora_enterprise#9231

See merge request artica/pandorafms!4990
This commit is contained in:
Diego Muñoz-Reja 2022-06-28 15:37:46 +00:00
commit 9120eb44c5
1 changed files with 5 additions and 5 deletions

View File

@ -390,11 +390,11 @@ if (is_ajax() === true) {
// phpcs:disable Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps // phpcs:disable Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
if ($tmp->meta === true) { if ($tmp->meta === true) {
if ($tmp->server_name !== null) { if ($tmp->server_name !== null) {
$tmp->data_server = metaconsole_get_servers( $data_server = metaconsole_get_servers(
$tmp->server_id $tmp->server_id
); );
$tmp->server_url_hash = metaconsole_get_servers_url_hash( $tmp->server_url_hash = metaconsole_get_servers_url_hash(
$tmp->data_server $data_server
); );
} }
} }
@ -892,11 +892,11 @@ if (is_ajax() === true) {
$server_url = ''; $server_url = '';
$hashdata = ''; $hashdata = '';
if ($tmp->meta === true) { if ($tmp->meta === true) {
if (isset($tmp->data_server) === true if (isset($data_server) === true
&& $tmp->data_server !== false && $data_server !== false
&& isset($tmp->server_url_hash) === true && isset($tmp->server_url_hash) === true
) { ) {
$server_url = $tmp->data_server['server_url']; $server_url = $data_server['server_url'];
$hashdata = $tmp->server_url_hash; $hashdata = $tmp->server_url_hash;
} }
} }