From 32c292551584dfdbe53e68bf884d310171b70f31 Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Tue, 29 Aug 2023 08:23:06 +0200 Subject: [PATCH] #11780 Fix functions_filemanager --- pandora_console/include/functions_filemanager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_console/include/functions_filemanager.php b/pandora_console/include/functions_filemanager.php index a69a9f8894..aee3d88730 100644 --- a/pandora_console/include/functions_filemanager.php +++ b/pandora_console/include/functions_filemanager.php @@ -190,6 +190,8 @@ function upload_file($upload_file_or_zip, $default_real_directory, $destination_ // Upload zip. if ($upload_zip === true) { + $parse_all_queries = explode('&', parse_url($_SERVER['HTTP_REFERER'], PHP_URL_QUERY)); + $parse_sec2_query = explode('=', $parse_all_queries[1]); if (isset($_FILES['file']) === true && empty($_FILES['file']['name']) === false ) {