From a2fde8505f97a0c811ab3aa89eddc928ed5d2128 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 13 May 2024 14:42:24 +0200 Subject: [PATCH] #13719 from_base64 no needed on custom_data --- pandora_console/include/functions_events.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 9d43b05c2f..5ed43041d9 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1158,17 +1158,6 @@ function events_get_all( // Free search. if (empty($filter['search']) === false) { - if (isset($config['dbconnection']->server_version) === true - && $config['dbconnection']->server_version > 50600 - ) { - // Use "from_base64" requires mysql 5.6 or greater. - $custom_data_search = 'from_base64(te.custom_data)'; - } else { - // Custom data is JSON encoded base64, if 5.6 or lower, - // user is condemned to use plain search. - $custom_data_search = 'te.custom_data'; - } - $not_search = ''; $nexo = 'OR'; $array_search = [ @@ -1176,7 +1165,7 @@ function events_get_all( 'lower(te.evento)', 'lower(te.id_extra)', 'lower(te.source)', - 'lower('.$custom_data_search.')', + 'lower(te.custom_data)', ]; if (isset($filter['not_search']) === true && empty($filter['not_search']) === false