btrbk: use single quotes for raw table format

unsafe-filenames
Axel Burri 2021-08-16 17:50:42 +02:00
parent 48bf4f05b9
commit 81a04e4287
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -5163,7 +5163,7 @@ sub print_formatted(@)
# output: key0="value0" key1="value1" ...
foreach my $row (@$data) {
print $fh "format=\"$format_key\" ";
print $fh join(' ', map { "$_=\"" . ($row->{$_} // "") . "\""; } @keys) . "\n";
print $fh join(' ', map { "$_=" . quoteshell(($row->{$_} // "")) } @keys) . "\n";
}
}
elsif(($format eq "tlog") || ($format eq "syslog"))