From c22b8339ea6e9a134c96f45574425f382e7f465b Mon Sep 17 00:00:00 2001 From: jakani24 Date: Mon, 1 Apr 2024 11:31:58 +0200 Subject: [PATCH] Update database_settings_functions.php --- .../system/secure_zone/php/database_settings_functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server/cyberhex-code/system/secure_zone/php/database_settings_functions.php b/src/server/cyberhex-code/system/secure_zone/php/database_settings_functions.php index 3b6b147..2924290 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/database_settings_functions.php +++ b/src/server/cyberhex-code/system/secure_zone/php/database_settings_functions.php @@ -71,7 +71,11 @@ function list_yara_files($dir) { $path = $dir . '/' . $entry; // If the entry is a directory, call the function recursively if (is_dir($path)) { - $yar_files = array_merge($yar_files, list_yara_files($path)); + $buf=list_yara_files($path); + foreach($buf as $newpath){ + $yar_files[]=$newpath + } + //$yar_files = array_merge($yar_files, list_yara_files($path)); } // If the entry is a file and ends with .yar extension, add it to the array elseif (is_file($path) && pathinfo($path, PATHINFO_EXTENSION) === 'yar') {