From 1125f4f432edd6ddbb8f7e1b2489a891a86c215c Mon Sep 17 00:00:00 2001 From: Ian Walls Date: Wed, 6 Oct 2010 16:25:19 -0400 Subject: [PATCH] Tighten system call to unzip Signed-off-by: Galen Charlton --- tools/picture-upload.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/picture-upload.pl b/tools/picture-upload.pl index d21b6b0330..b60f83c7d2 100755 --- a/tools/picture-upload.pl +++ b/tools/picture-upload.pl @@ -95,7 +95,7 @@ if ( ($op eq 'Upload') && $uploadfile ) { # Case is important in these ope } close $tfh; if ( $filetype eq 'zip' ) { - unless (system("unzip $tempfile -d $dirname") == 0) { + unless (system("unzip", "$tempfile -d $dirname") == 0) { $errors{'UZIPFAIL'} = $uploadfilename; $template->param( ERRORS => [ \%errors ] ); output_html_with_http_headers $input, $cookie, $template->output; # This error is fatal to the import, so bail out here -- 2.39.5