From a2be858a7d19e33f00b1991c74d8d58861a99ecb Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 10 May 2022 16:25:05 +0200 Subject: [PATCH] #8836 remove base64 decode --- pandora_console/include/functions_events.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 934d7c27bc..ea820f8f05 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -4190,7 +4190,7 @@ function events_get_response_target( // Parse the event custom data. if (empty($event['custom_data']) === false) { - $custom_data = json_decode(base64_decode($event['custom_data'])); + $custom_data = json_decode($event['custom_data']); foreach ($custom_data as $key => $value) { $target = str_replace('_customdata_'.$key.'_', $value, $target); } @@ -4754,7 +4754,7 @@ function events_page_custom_data($event) $table->head = []; $table->class = 'table_modal_alternate'; - $json_custom_data = base64_decode($event['custom_data']); + $json_custom_data = $event['custom_data']; $custom_data = json_decode($json_custom_data); if ($custom_data === null) { @@ -7637,7 +7637,7 @@ function events_get_field_value_by_event_id( // Parse the event custom data. if (!empty($event['custom_data'])) { - $custom_data = json_decode(base64_decode($event['custom_data'])); + $custom_data = json_decode($event['custom_data']); foreach ($custom_data as $key => $val) { $value = str_replace('_customdata_'.$key.'_', $val, $value); }