From b864cc8adf0cd3bac735612fbd72ba3942217c3a Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Thu, 31 Dec 2015 15:12:58 +0100 Subject: [PATCH] Fixed "upload file" to visual console with file manager. Ticket#2944 --- pandora_console/include/functions_filemanager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora_console/include/functions_filemanager.php b/pandora_console/include/functions_filemanager.php index 8fe1e2c207..b91f46e5c7 100644 --- a/pandora_console/include/functions_filemanager.php +++ b/pandora_console/include/functions_filemanager.php @@ -158,6 +158,7 @@ if ($upload_file) { if (isset ($_FILES['file']) && $_FILES['file']['name'] != "") { $filename = $_FILES['file']['name']; $filesize = $_FILES['file']['size']; + $filename = str_replace(' ', '_', $filename); $real_directory = io_safe_output((string) get_parameter('real_directory')); $directory = io_safe_output((string) get_parameter ('directory')); $umask = io_safe_output((string) get_parameter('umask', ''));