summaryrefslogtreecommitdiffstats
path: root/lib/App/BorgRestore/Borg.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/BorgRestore/Borg.pm')
-rw-r--r--lib/App/BorgRestore/Borg.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/App/BorgRestore/Borg.pm b/lib/App/BorgRestore/Borg.pm
index def6b9c..24c0608 100644
--- a/lib/App/BorgRestore/Borg.pm
+++ b/lib/App/BorgRestore/Borg.pm
@@ -116,6 +116,7 @@ method borg_list_time() {
method restore($components_to_strip, $archive_name, $path) {
$log->debugf("Restoring '%s' from archive %s, stripping %d components of the path", $path, $archive_name, $components_to_strip);
+ $archive_name = App::BorgRestore::Helper::untaint($archive_name, qr(.*));
system(qw(borg extract -v --strip-components), $components_to_strip, $self->{borg_repo}."::".$archive_name, $path);
}