From 712ea0ac188aa2a22df1c3aca4cf4f17adf6b69e Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Thu, 19 Nov 2015 14:15:46 +0100 Subject: Use list-form of system() so we avoid the shell --- SBO-Lib/lib/SBO/Lib.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SBO-Lib/lib') diff --git a/SBO-Lib/lib/SBO/Lib.pm b/SBO-Lib/lib/SBO/Lib.pm index 7eba745..4bf7394 100644 --- a/SBO-Lib/lib/SBO/Lib.pm +++ b/SBO-Lib/lib/SBO/Lib.pm @@ -510,7 +510,7 @@ sub get_distfile { mkdir $distfiles unless -d $distfiles; chdir $distfiles; unlink $filename if -f $filename; - if (system("wget --no-check-certificate \"$link\"") != 0) { + if (system('wget', '--no-check-certificate', $link) != 0) { return "Unable to wget $link.\n", _ERR_DOWNLOAD; } # can't do anything if the link in the .info doesn't lead to a good d/l -- cgit v1.2.3