From 700b3c33a09298f866ce4f66c5de10e0e84596da Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 25 Sep 2018 16:09:50 -0400 Subject: [PATCH] fix command line when using .zip --- web/skins/classic/includes/export_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/skins/classic/includes/export_functions.php b/web/skins/classic/includes/export_functions.php index a21f19534..02789249b 100644 --- a/web/skins/classic/includes/export_functions.php +++ b/web/skins/classic/includes/export_functions.php @@ -947,7 +947,7 @@ function exportEvents( } elseif ( $exportFormat == 'zip' ) { $archive = ZM_DIR_EXPORTS.'/'.$export_root.($connkey?'_'.$connkey:'').'.zip'; $command = 'zip '; - $command = ($exportStructure == 'flat' ? ' -j ' : ' -r ' ).escapeshellarg($archive); + $command .= ($exportStructure == 'flat' ? ' -j ' : ' -r ' ).escapeshellarg($archive); $command .= $exportCompressed ? ' -9' : ' -0'; } else { Error("No exportFormat specified.");