mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Handle directory name with a space
This commit is contained in:
@@ -40,8 +40,10 @@ if ($ENV{'PATH_INFO'}) {
|
||||
if (-d $file) {
|
||||
# Zip up the whole directory
|
||||
($shortfile = $file) =~ s/^.*\///g;
|
||||
$shortfile =~ s/\s+//g;
|
||||
$temp = &transname($shortfile.".zip");
|
||||
$out = &backquote_command("cd ".quotemeta($file)." && zip -r $temp .");
|
||||
$out = &backquote_command("cd ".quotemeta($file).
|
||||
" && zip -r ".quotemeta($temp)." .");
|
||||
if ($?) {
|
||||
&error(&text('fetch_ezipcmd',
|
||||
"<tt>".&html_escape($out)."</tt>"));
|
||||
|
||||
Reference in New Issue
Block a user